Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / media / mq-relative-constraints-07.html
blob402825dbb6abe93407edcf4fde91a3590798b7b7
1 <html>
2 <head>
3 <title>CSS3 media query test: media query testing constraints with relative values evaluating false (screen and (max-width: 30em)). Using style element, @media css rule.</title>
4 <link rel="help" href="http://www.w3.org/TR/css3-mediaqueries/#width" />
5 <style type="text/css">
6 p { color: green }
7 @media screen and (max-width: 30em) {
8 p { color: red }
10 </style>
11 </head>
12 <body>
14 <p> This text should be green if viewport is wider than 30em. This tests that (max-width: 30em) can evaluate to false. </p>
16 <div style="width: 30em; background-color: lightblue;"> div of length 30 em </div>
17 <div style="width: 800px; background-color: lightblue;"> div of length 800px </div>
18 </body>
19 </html>