Bug 254297 - StyleRuleGroup should be composited instead of inherited
Summary: StyleRuleGroup should be composited instead of inherited
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-22 16:48 PDT by Matthieu Dubet
Modified: 2023-03-22 16:52 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Dubet 2023-03-22 16:48:28 PDT
Currently, StyleRuleGroup is modeled exactly like CSSGroupingRule (being an intermediate class in the Rule <-> StyleRule hierarchy).

https://w3c.github.io/csswg-drafts/cssom/#the-cssgroupingrule-interface

We should favor composition instead of inheritance in general, and this is also a prerequisite of the CSS Nesting CSSOM implementation.
Comment 1 Radar WebKit Bug Importer 2023-03-22 16:48:45 PDT
<rdar://problem/107103847>
Comment 2 Matthieu Dubet 2023-03-22 16:52:07 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11835