# HG changeset patch # User Simon Pieters # Date 1366625350 -7200 # Node ID f2b03be2c8d5488fc55931d2f377ba5e4a492661 # Parent abdd9e2238b6aed96df297f964eb4136c710e2e9 [cssom] CSSStyleDeclaration properties need [TreatNullAs=EmptyString]; specify cssFloat diff -r abdd9e2238b6 -r f2b03be2c8d5 cssom/Overview.html --- a/cssom/Overview.html Mon Apr 22 11:35:40 2013 +0200 +++ b/cssom/Overview.html Mon Apr 22 12:09:10 2013 +0200 @@ -1979,12 +1979,28 @@ -

For each CSS property property that the user agent supports, the following - partial interface applies where attribute is obtained by running the - CSS property to IDL attribute algorithm for property. - +

If the user agent supports the 'float' CSS property, the following partial interface + applies. +

partial interface CSSStyleDeclaration {
-  attribute DOMString attribute;
+  [TreatNullAs=EmptyString] attribute DOMString cssFloat;
+};
+ +

The cssFloat + attribute, on getting, must return the result of invoking + getPropertyValue() with + "float" as argument. On setting, the attribute must invoke + setPropertyValue() with + "float" as first argument, as second argument the given value, and no third argument. + Any exceptions thrown must be re-thrown. + +

For each CSS property property that the user agent supports, except for + the 'float' property, the following partial interface applies where attribute + is obtained by running the CSS property to IDL attribute algorithm for + property. + +

partial interface CSSStyleDeclaration {
+  [TreatNullAs=EmptyString] attribute DOMString attribute;
 };

Getting the attribute attribute must return the result of invoking diff -r abdd9e2238b6 -r f2b03be2c8d5 cssom/cssom-source --- a/cssom/cssom-source Mon Apr 22 11:35:40 2013 +0200 +++ b/cssom/cssom-source Mon Apr 22 12:09:10 2013 +0200 @@ -1535,12 +1535,28 @@ -

For each CSS property property that the user agent supports, the following - partial interface applies where attribute is obtained by running the - CSS property to IDL attribute algorithm for property. - +

If the user agent supports the 'float' CSS property, the following partial interface + applies. +

partial interface CSSStyleDeclaration {
-  attribute DOMString attribute;
+  [TreatNullAs=EmptyString] attribute DOMString cssFloat;
+};
+ +

The cssFloat + attribute, on getting, must return the result of invoking + getPropertyValue() with + "float" as argument. On setting, the attribute must invoke + setPropertyValue() with + "float" as first argument, as second argument the given value, and no third argument. + Any exceptions thrown must be re-thrown. + +

For each CSS property property that the user agent supports, except for + the 'float' property, the following partial interface applies where attribute + is obtained by running the CSS property to IDL attribute algorithm for + property. + +

partial interface CSSStyleDeclaration {
+  [TreatNullAs=EmptyString] attribute DOMString attribute;
 };

Getting the attribute attribute must return the result of invoking diff -r abdd9e2238b6 -r f2b03be2c8d5 cssom/data/xrefs/css/cssom.json --- a/cssom/data/xrefs/css/cssom.json Mon Apr 22 11:35:40 2013 +0200 +++ b/cssom/data/xrefs/css/cssom.json Mon Apr 22 12:09:10 2013 +0200 @@ -15,6 +15,7 @@ "css rule": "rule", "css style sheet": "css-style-sheet", "document style sheets": "document-style-sheets", + "dom-cssstyledeclaration-cssfloat": "dom-cssstyledeclaration-cssfloat", "enable a style sheet set": "enable-a-style-sheet-set", "enabled style sheet set": "enabled-style-sheet-set", "escape a character": "escape-a-character",