1
0
Fork 0
firefox/testing/web-platform/tests/css/mediaqueries/mq-calc-resolution.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

20 lines
600 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="../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>