Bug 266399

Summary: [css-scoping] Implement implicit scoping root when no <scope-start>
Product: WebKit Reporter: Matthieu Dubet <m_dubet>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/43770
Bug Depends on:    
Bug Blocks: 229520    

Matthieu Dubet
Reported 2023-12-14 03:41:48 PST
When the @scope rule doesn't have a <scope-start> prelude, the declaration node is the scoping root. We should implement this. "For each element matched by <scope-start>, create a scope using that element as the scoping root. If no <scope-start> is specified, the scoping root is the parent element of the owner node of the stylesheet where the @scope rule is defined. (If no such element exists, then the scoping root is the root of the containing node tree.)" https://drafts.csswg.org/css-cascade-6/#scope-limits
Attachments
Radar WebKit Bug Importer
Comment 1 2023-12-14 03:42:02 PST
Matthieu Dubet
Comment 2 2023-12-15 08:59:08 PST
EWS
Comment 3 2023-12-20 16:34:05 PST
Committed 272390@main (cee867893141): <https://commits.webkit.org/272390@main> Reviewed commits have been landed. Closing PR #21868 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.