You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, it would be great if reffy could output a cssom-generated.idl based on the properties found in all other specs, which could then be used in an idlharness.js test. Using something like the above snippet with display and align-content, I know that Chrome and Safari will fail all tests, Firefox fail the prototype ones (because it has CSS2Properties instead) and Edge pass except for dashed attributes.
I'll have a go at generating that IDL.
The text was updated successfully, but these errors were encountered:
I'm leaning towards the last option, and the main problem I see is how to ensure that all the specs that define properties actually are tested like this. Even if we did a single css/cssom/interfaces-generated.html test, that test would still have to list all the JSON files to load and check.
I don't feel strongly but I'd prefer the last option as well. Although Reffy runs some analyses on the content it extracts, the dumps were meant to stay as close to the actual IDL (or meta-IDL) defined in the spec as possible, so that other tools can run on them with confidence that what they are seeing is what the spec defines.
Reffy now generates a styleDeclaration property for CSS properties as discussed in w3c/webref#51. This approach was preferred to generating the partial interface definitions (which can easily be done with this new property).
https://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface has some IDL "macros":
These should be turned into something like this:
Gecko actually does generate IDL as part of the build step:
https://github.com/mozilla/gecko-dev/blob/86897859913403b68829dbf9a154f5a87c4b0638/dom/webidl/CSS2Properties.webidl.in
So, it would be great if reffy could output a cssom-generated.idl based on the properties found in all other specs, which could then be used in an idlharness.js test. Using something like the above snippet with
display
andalign-content
, I know that Chrome and Safari will fail all tests, Firefox fail the prototype ones (because it hasCSS2Properties
instead) and Edge pass except for dashed attributes.I'll have a go at generating that IDL.
The text was updated successfully, but these errors were encountered: