diff --git a/components/script/dom/webidls/CSSStyleDeclaration.webidl b/components/script/dom/webidls/CSSStyleDeclaration.webidl index 1da7946338b..79e70a83d4e 100644 --- a/components/script/dom/webidls/CSSStyleDeclaration.webidl +++ b/components/script/dom/webidls/CSSStyleDeclaration.webidl @@ -84,7 +84,7 @@ partial interface CSSStyleDeclaration { [TreatNullAs=EmptyString] attribute DOMString boxShadow; [TreatNullAs=EmptyString] attribute DOMString textShadow; - //[TreatNullAs=EmptyString] attribute DOMString float; //XXXjdm need BinaryName annotation + [TreatNullAs=EmptyString] attribute DOMString _float; [TreatNullAs=EmptyString] attribute DOMString clear; diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index 51234eece8b..a1acc73ae29 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -5497,9 +5497,7 @@ macro_rules! css_properties_accessors { ($macro_name: ident) => { $macro_name! { % for property in SHORTHANDS + LONGHANDS: - ## Servo internal CSS properties are not accessible. - ## FIXME: Add BinaryName WebIDL annotation (#4435). - % if property.derived_from is None and property.name != "float": + % if property.derived_from is None: % if property != LONGHANDS[-1]: [${property.camel_case}, Set${property.camel_case}, "${property.name}"], % else: