diff options
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/media/mq-relative-constraints-08.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/media/mq-relative-constraints-08.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/media/mq-relative-constraints-08.html b/third_party/WebKit/LayoutTests/fast/media/mq-relative-constraints-08.html new file mode 100644 index 0000000..797f3c7 --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/media/mq-relative-constraints-08.html @@ -0,0 +1,20 @@ +<html> +<head> +<title>CSS3 media query test: media query testing constraints with relative values (screen and (min-height: 30ex)). 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 (min-height: 30ex) { +p { color: green } +} +</style> +</head> +<body> + +<p> This text should be green if height is at least 30ex .</p> + +<div style="display:inline; float:left; height: 30ex; background-color: lightblue;"> div of height 30ex </div> +<div style="display:inline; float:left; height: 600px; background-color: lightblue;"> div of height 600px </div> +</body> +</html> |