Skip to content

Expose live CSSFontFaceRule descriptors and invalidation #575

Closed

Description

@wieslawsoltes

Parent: #239.

Problem

Native-supported @font-face rules were exposed as opaque CSS rules. Unchanged applications need typed CSSFontFaceRule identity and a live descriptor declaration whose mutations republish attached font sources and invalidate font-dependent cascade, measurement and layout without losing stylesheet ownership or leaking detached rules.

Implemented boundary

  • Expose CSSFontFaceRule, CSSRule.FONT_FACE_RULE = 5, realm/parent identity, and stable wrappers.
  • Provide SameObject/PutForwards live descriptor style, named descriptor mutation, and single-line cssText serialization.
  • Republish mutations through existing stylesheet/import/constructed/adopted owners into the native font registry, cascade, font measurement and layout.
  • Recursively detach deleted/replaced rules and isolate later detached mutations.
  • Preserve existing loader/security/cache/byte and owner/import caps.
  • Add WPT-shaped and native browser-DOM source contracts plus a validation/deferred-work note.

Scope limits

This does not add the FontFace/FontFaceSet API. Unsupported descriptors remain authored CSSOM text and are ignored by the host. All rule families currently consumed by the native parser now have typed wrappers; #239 retains cumulative mutation/invalidation/performance/memory/teardown and product-package qualification.

Validation boundary

git diff --check passed. Authored contracts were not executed under the current implementation-throughput direction.

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