Bug 238273

Summary: Split up CSSStyleDeclaration
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: koivisto, sam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 289925    
Bug Blocks: 283722    

Sam Sneddon [:gsnedders]
Reported 2022-03-23 11:22:31 PDT
In https://github.com/w3c/csswg-drafts/issues/5649#issuecomment-755796005 the CSS WG resolved to split CSSStyleDeclaration into smaller interfaces, splitting up the current mix of properties and descriptors that WebKit and Blink have. In short, we should end up interface CSSStyleProperties : CSSStyleDeclaration {} containing attributes for all supported CSS properties (but nothing that's only a descriptor), along with many interfaces like interface CSSFontFaceDescriptors : CSSStyleDeclaration {} containing attributes for all the descriptors that apply to @font-face rules, CSSCounterStyleDescriptors containing attributes for all the descriptors that apply to @counter-style rules, etc. At the moment, we don't know what properties/descriptors apply to what, besides knowing those annotated with "descriptor-only": true aren't properties. We probably need to start off by introducing some knowledge of what applies to what (e.g., by relating each thing in CSSProperties.json to StyleRuleType).
Attachments
Radar WebKit Bug Importer
Comment 1 2022-03-23 11:22:40 PDT
Note You need to log in before you can comment on or make changes to this bug.