Skip to content

Expose live CSSContainerRule reflection and mutation #567

Closed

Description

@wieslawsoltes

Parent: #239. CSS epic: #235.

Expose parsed @container groups as live browser-shaped CSSContainerRule objects instead of opaque generic CSSRule instances. Pinned unchanged Code OSS recursively walks CSSRule.cssRules, so the generic projection stops its walk at production container-query boundaries even though WebScene already parses and evaluates those groups.

Focused scope

  • Implement CSSGroupingRule/CSSConditionRule inheritance and legacy type === 0.
  • Expose live SameObject cssRules, parent links, conditionText, containerName, containerQuery, and frozen conditions reflection.
  • Preserve exact insertion/deletion exceptions, nested media ownership, iframe realm identity, synchronous container-cascade invalidation, and detached-rule mutation isolation.
  • Reuse the existing native rule tree, staged publication, constructed/adopted/import limits and one-publication-per-operation behavior.

Each rule adds one weak brand entry and one frozen condition array. Prelude parsing is linear. Existing limits remain 1,024 pending owner replacements/32 MiB, 1,024 adopted sheets/32 MiB per publication, and imported-sheet 1,024-load/16-level/32 MiB cumulative limits. No new queue, timer, DOM owner, native rule copy or cross-realm strong reference is added.

WPT revision 2c705104a295c48053eeddf7fe0170d790a4e853 and native/browser contracts are authored. Under the current implementation-throughput direction only git diff --check ran; runtime, WPT, performance, memory, teardown, package and CI gates remain on #239.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vscode-oss/planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions