Open
Bug 1582314
Opened 6 years ago
Updated 3 years ago
Remove method of "cssFloat" from ServoCSSPropList.py and special-case it in CSSStyleDeclaration
Categories
(Core :: DOM: CSS Object Model, enhancement, P3)
Core
DOM: CSS Object Model
Tracking
()
NEW
People
(Reporter: boris, Unassigned)
References
Details
Our current ServoCSSPropList.py and ServoCSSPropList.h define a special method for float (i.e. cssFloat), and its method will be used to generate the webidl interface and something like IDL name lookup. It'd be better to keep using float in these lists, and handle the special conversion to/from cssFloat when we needed it. There are some reasons:
- The conversion of CSS property to IDL attribute and the conversion of IDL attribute to CSS property don't include
cssFloat. This means we shouldn't handle it inside the standard conversion. - Based on [CSSOM],
cssFloatshould be a special attribute inCSSStyleDeclaration, so we should add it into the interface and do the same thing asfloat, instead of only generatingcssFloat. (Though we use alias to achieve this.) - We introduce
cssOffsetfor Web Animation APIs for animation property, and we want to special-casecssOffsetandcssFloatto avoid the attribute name collision. Per the spec steps, we special-casecssOffsetandcssFloat, and then use standard conversion. This means it'd be great to not includecssFloatin the standard conversion.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•