question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generate partial IDL fragments for CSS properties for WPT?

See original GitHub issue

CSSOM 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tidoustcommented, Mar 10, 2021

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 styleDeclaration key to property descriptions in CSS extracts that is an array with IDL attribute names. For instance:

 {
   "properties": {
     "align-content": {
       "styleDeclaration": ["align-content", "alignContent"]
     }
   }
 }
0reactions
tidoustcommented, Jun 2, 2021

All CSS properties descriptions now contain a styleDeclaration property. Released in @webref/css@1.1.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found