Files
rust_browser/tests/goldens/fixtures/268-media-screen-applies.html
Zachary D. Rowitsch 029e3c83bf Implement CSS 2.1 @import media query filtering and verify @media rules with code review fixes (§6.3, §7.2.1, §7.3)
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>
2026-03-14 11:56:46 -04:00

21 lines
257 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 100px;
height: 50px;
background-color: gray;
}
@media screen {
.box {
background-color: green;
}
}
</style>
</head>
<body>
<div class="box">Screen</div>
</body>
</html>