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>
5 lines
228 B
Plaintext
5 lines
228 B
Plaintext
DisplayList items=3
|
|
SolidRect rect=(8, 8, 100, 50) color=#008000
|
|
Text rect=(8, 9.6, 26.490454, 16) text="Print" color=#000000 font_size=16
|
|
Text rect=(37.54479, 9.6, 43.324524, 16) text="ignored" color=#000000 font_size=16
|