Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / media / mq-relative-constraints-09.html
blob725cd715652041832e64706aef8c8f4a122b6dfc
1 <html>
2 <head>
3 <title>CSS3 media query test: media query testing constraints with relative values (screen and (max-width: 60em)). 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: red }
7 @media screen and (max-width: 60em) {
8 p { color: green }
10 </style>
11 </head>
12 <body>
13 <p> This text should be green if viewport is narrower than 60em. </p>
14 <div style="width: 60em; background-color: lightblue;"> div of length 60 em </div>
15 <div style="width: 800px; background-color: lightblue;"> div of length 800px </div>
16 </body>
17 </html>