Bug 238273 - Split up CSSStyleDeclaration
Summary: Split up CSSStyleDeclaration
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-23 11:22 PDT by Sam Sneddon [:gsnedders]
Modified: 2022-03-23 11:22 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Sneddon [:gsnedders] 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).
Comment 1 Radar WebKit Bug Importer 2022-03-23 11:22:40 PDT
<rdar://problem/90712173>