You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reflect and mutate nested CSS style rules for Code OSS #425
Pinned unchanged Code OSS 645f29cc3176500b4b5762ba887cf2a7f0ffdf2c recursively reads CSSStyleRule.cssRules in src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.ts to discover GPU editor decoration rules through CSS nesting. The pinned production source contains nested selectors across 36 CSS files, including diff editors, inline completions, testing, chat, and browser views.
Current failure
WebScene native CSS already expands nested selectors into the cascade, but its CSSOM adapter exposes a nested outer style rule only as declarations: CSSStyleRule.cssRules, insertRule, and deleteRule are absent, post-nesting declaration runs have no CSSNestedDeclarations reflection, and the unchanged recursive consumer stops at the outer rule.
Focused scope
Expose SameObject live CSSStyleRule.cssRules with nested CSSStyleRule, grouping-rule, and CSSNestedDeclarations identity and parent links.
Support browser-shaped nested insertRule / deleteRule, declaration and selector mutation, serialization, synchronous recascade, and detached isolation.
Preserve the style owners DOM text while publishing through the existing bounded native staged replacement path.
Add Chrome/WPT-derived semantics, the exact Code OSS recursion, bounded mutation performance, heap/RSS, publication, and 100-cycle main/iframe teardown gates.
Collision boundary
Own only the CSSOM compatibility header, its existing native browser-DOM and performance tests, and one dedicated contract/profile. Do not touch runtime scheduling or FileReader paths in #423, iframe/window-message/cache paths in #81/#421, selector matcher/invalidation work under #237, docs consolidation #76, AppScene, or vscode-demo. Imported stylesheet loading/reflection remains a separate #239 slice.
Implemented and merged in #427 at fc71e92f8fcfb38f7385ff355b64381240ebdda5.
This closes the pinned Code OSS consumer in decorationCssRuleExtractor.ts: recursive nested CSSStyleRule.cssRules reflection now exposes live style/grouping children, CSSNestedDeclarations, standards-shaped selector serialization, mutation, parent links, detachment, and synchronous recascade.
Validation on the PR head 6cdd985c1a60b8539860895f3b158c2e2713f6d0:
Activity
wieslawsoltes commentedon Sep 18, 2026
Implemented and merged in #427 at
fc71e92f8fcfb38f7385ff355b64381240ebdda5.This closes the pinned Code OSS consumer in
decorationCssRuleExtractor.ts: recursive nestedCSSStyleRule.cssRulesreflection now exposes live style/grouping children,CSSNestedDeclarations, standards-shaped selector serialization, mutation, parent links, detachment, and synchronous recascade.Validation on the PR head
6cdd985c1a60b8539860895f3b158c2e2713f6d0:The redundant broad CI and native-document tails were canceled after the directly affected portable contract and focused local gates passed.