Generate partial IDL fragments for CSS properties for WPT?
See original GitHub issueCSSOM defines up to three partial interfaces that are created for each supported property:
partial interface CSSStyleDeclaration {
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _camel_cased_attribute;
};
partial interface CSSStyleDeclaration {
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _webkit_cased_attribute;
};
partial interface CSSStyleDeclaration {
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString _dashed_attribute;
};
It would be nice to have these tested in WPT, whether Reffy itself generates these or whether they’re generated merely for the WPT export.
See also https://github.com/tabatkins/bikeshed/issues/549 for a Bikeshed feature request to add generation of these to Bikeshed, and w3c/csswg-drafts#5412 for potential pitfalls here (though as far as I’m aware no such property is currently defined)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
CSS Cascading and Inheritance Level 5
This CSS module describes how to collate style rules and assign values to all properties on all elements. By way of cascading and ......
Read more >Text Fragments - GitHub Pages
Text Fragments adds support for specifying a text snippet in the URL ... The browser can then generate a URL with the text...
Read more >chromium / external / github.com / web-platform-tests / wpt
The wpt command provides a frontend to a variety of tools for working with and running web-platform-tests. Some of the most useful commands...
Read more >box-decoration-break - CSS: Cascading Style Sheets | MDN
The border-radius , border-image , and box-shadow are applied to each fragment independently. The background is also drawn independently for ...
Read more >Safari Technology Preview Release Notes
commitStyles() not changing the style attribute for individual CSS ... Fixed Scroll To Text Fragments to always be scrolled to the center of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Summary of the discussion in #111 on this topic: generating the IDL is not that useful but having the IDL attribute names that each property generates is. Goal is thus to add a
styleDeclarationkey to property descriptions in CSS extracts that is an array with IDL attribute names. For instance:All CSS properties descriptions now contain a
styleDeclarationproperty. Released in@webref/css@1.1.0.