mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
It was initially thought that the spec disallows them, but this turned out to be incorrect. This fixes several WPT tests.
21 lines
649 B
HTML
21 lines
649 B
HTML
<!DOCTYPE html>
|
|
<title>Test: support for calc resolution in Media Queries</title>
|
|
<link rel="help" href="http://www.w3.org/TR/css3-values/#calc-notation">
|
|
<link rel="match" href="../../../../expected/wpt-import/css/mediaqueries/../reference/ref-filled-green-100px-square.xht">
|
|
<meta name="assert" content="calc resolution can be used in Media Queries">
|
|
<style>
|
|
#test {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: red;
|
|
}
|
|
|
|
@media (resolution >= calc(2x - 96dpi)){
|
|
#test {
|
|
background-color: green;
|
|
}
|
|
}
|
|
</style>
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
<div id="test"></div>
|