Skip to content

Resolve bounded imported stylesheets natively - #483

Merged
wieslawsoltes merged 1 commit into
mainfrom
feature/css-import-native-481
Sep 18, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
feature/css-import-native-481

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Problem and behavior

Imported CSS was ignored by native parsing, linked rules had no owner/source identity, and disconnecting a link could leave its rules in the cascade.

This provider slice resolves leading @import rules through the existing stylesheet resource policy, preserves nested base URLs and media/layer/supports qualifiers, bounds depth/count/bytes/cycles, retains linked source/address/owner identity, and removes/reconnects owner-bound rules. Private non-enumerable hooks expose the retained source and policy-backed loader to the stacked CSSOM consumer.

Stack

  1. This PR — native import loading and owner identity.
  2. CSSOM consumer PR based on this branch — public CSSImportRule, child sheets, live mutation, and contracts.

Validation debt

Per the implementation-throughput directive, build, native/browser/WPT, performance, memory, lifecycle, package, and CI validation were not run. The cumulative stack top carries the regression contracts and all checks remain required before release promotion.

Closes #481

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve bounded CSS imports with linked stylesheet ownership

1 participant