blob: 725cd715652041832e64706aef8c8f4a122b6dfc [file] [log] [blame]
<html>
<head>
<title>CSS3 media query test: media query testing constraints with relative values (screen and (max-width: 60em)). Using style element, @media css rule.</title>
<link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#width" />
<style type="text/css">
p { color: red }
@media screen and (max-width: 60em) {
p { color: green }
}
</style>
</head>
<body>
<p> This text should be green if viewport is narrower than 60em. </p>
<div style="width: 60em; background-color: lightblue;"> div of length 60 em </div>
<div style="width: 800px; background-color: lightblue;"> div of length 800px </div>
</body>
</html>