Repository navigation
Implement nested style rule CSSOM - #427
Merged
Merged
Conversation
This was referenced Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #425.
Problem
Pinned unchanged Code OSS recursively walks
CSSStyleRule.cssRulesin the GPU decoration extractor. Its production CSS uses nested selectors across 36 files, but WebScene exposed only the outer rule declaration and stopped that traversal.Result
Nested style rules now expose a SameObject live
CSSRuleList, browser-shaped nestedCSSStyleRuleandCSSNestedDeclarationsobjects, nested grouping reflection, parent links, andinsertRule/deleteRule. Selector and declaration mutation reserialize through the existing staged owner publication, recascade synchronously, preserve owner DOM text, and remain isolated after detachment.The flat style-rule path keeps layer discovery on raw child arrays, avoiding a rule-list synchronization walk for every ordinary rule.
Exact base:
f034e70563934b401bf9e0c88d0f29c089366ae8Exact head:
6cdd985c1a60b8539860895f3b158c2e2713f6d0Collision boundary
The diff is confined to the CSSOM compatibility adapter, its native browser-DOM/performance tests, and one dedicated contract/profile. It does not touch FileReader/task scheduling, iframe/window-message/cache paths, selector matching/invalidation, docs consolidation, AppScene, or vscode-demo. Imported stylesheet loading/reflection remains separate.
Validation