NEW 217627
CSSStyleDeclaration includes descriptors
https://bugs.webkit.org/show_bug.cgi?id=217627
Summary CSSStyleDeclaration includes descriptors
Sam Sneddon [:gsnedders]
Reported 2020-10-12 11:46:57 PDT
e.g.: > "unicode-range" in document.body.style < true CSSStyleDeclaration should just contain properties, not descriptors.
Attachments
Patch (5.16 KB, patch)
2020-10-21 15:51 PDT, Sam Weinig
ews-feeder: commit-queue-
Sam Sneddon [:gsnedders]
Comment 1 2020-10-15 20:03:13 PDT
If you want more to fix around CSSStyleDeclaration Sam, there's more :) CSS.supports gets this right, but the IDL generation doesn't.
Sam Weinig
Comment 2 2020-10-16 10:20:53 PDT
Sam, can you point me to where the difference between properties and descriptors is defined? Our current CSSProperties.json does not seem to differentiate (or I don't understand how it is), so I would need a better understanding of what to change.
Sam Sneddon [:gsnedders]
Comment 3 2020-10-19 10:39:35 PDT
Sam, I filed https://github.com/w3c/csswg-drafts/issues/5633 about the fact that this is pretty unclear currently. A bunch of these have "skip-builder": true currently, so maybe we just want that more?
Radar WebKit Bug Importer
Comment 4 2020-10-19 11:47:16 PDT
Sam Weinig
Comment 5 2020-10-19 13:15:31 PDT
(In reply to Sam Sneddon [:gsnedders] from comment #3) > Sam, I filed https://github.com/w3c/csswg-drafts/issues/5633 about the fact > that this is pretty unclear currently. > > A bunch of these have "skip-builder": true currently, so maybe we just want > that more? There are ~40 marked with "skip-builder". If that is the set, perhaps we can rename skip-builder to be something semantic about the property rather than an action and use it, but I am not clear if that is the correct set.
Sam Weinig
Comment 6 2020-10-21 15:51:37 PDT
Sam Weinig
Comment 7 2020-10-21 15:52:47 PDT
Turns out there was a function on CSSProperty called isDescriptorOnly, so I'm going to use that as the guide.
Sam Weinig
Comment 8 2020-10-21 17:32:13 PDT
Hm, seems at least on rest expects some descriptors sometimes.
Sam Weinig
Comment 9 2020-10-21 19:23:01 PDT
The test, imported/w3c/web-platform-tests/css/cssom/cssom-fontfacerule.html, seems to indicate that when you get a CSSStyleDeclaration from a CSSFontFaceRule, it should include the descriptor "src".
Sam Weinig
Comment 10 2020-10-25 09:22:19 PDT
Reseting to default assignee while we work out what the behavior here should really be.
Sam Sneddon [:gsnedders]
Comment 11 2020-10-26 16:47:07 PDT
(In reply to Sam Weinig from comment #9) > The test, imported/w3c/web-platform-tests/css/cssom/cssom-fontfacerule.html, > seems to indicate that when you get a CSSStyleDeclaration from a > CSSFontFaceRule, it should include the descriptor "src". (In reply to Sam Weinig from comment #10) > Reseting to default assignee while we work out what the behavior here should > really be. See also: https://github.com/w3c/csswg-drafts/issues/5649
Note You need to log in before you can comment on or make changes to this bug.