Skip to content

Capture inline CSS image-set media before portable export #4515

Description

@chubes4

Problem

Data Liberation portable captures can omit image assets referenced only by inline CSS url() or image-set(). The frozen Figma Site capture retained those browser references in HTML and localized runtime JSON, but media-stubs.json did not contain the assets. Blocks Engine correctly rejected the import with unresolved_local_browser_reference.

The source later returned 404 for one omitted asset family, so the frozen capture cannot be repaired without fabricating content. This makes capture-time completeness mandatory.

BET-19 evidence

Expected contract

  • Generic media discovery includes image-valued inline CSS url() and image-set() references.
  • Responsive variants use the existing bounded family selection policy.
  • Portable export rewrites those references in HTML and textual runtime dependencies such as JSON.
  • Capture diagnostics report any declared browser reference that could not be localized.

PR #3952 now contains parser and export coverage for these contracts, but the frozen artifact remains permanently incomplete because capture occurred before the fix.

AI assistance

OpenAI GPT-5.6 Sol via OpenCode traced the BET-19 import through DLA, SSI, and Blocks Engine, implemented the capture/export coverage in PR #3952, and drafted this issue. Chris Huber reviewed and remains responsible for the report.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions