Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Test: support for calc resolution in Media Queries</title>
<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>