Add ImportDirective type pairing @import URLs with parsed media queries, enabling viewport-based filtering during import resolution so that e.g. `@import "print.css" print` is skipped on screen. Thread Viewport through the resolve_imports pipeline, strip CSS Cascade 5 layer/supports annotations before media parsing, and add golden tests for @media screen/print behavior. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 lines
144 B
Plaintext
4 lines
144 B
Plaintext
DisplayList items=2
|
|
SolidRect rect=(8, 8, 100, 50) color=#008000
|
|
Text rect=(8, 9.6, 37.450806, 16) text="Screen" color=#000000 font_size=16
|