Index: LayoutTests/fast/media/mq-relative-constraints-10.html |
diff --git a/LayoutTests/fast/media/mq-relative-constraints-10.html b/LayoutTests/fast/media/mq-relative-constraints-10.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7858e173bf8c3dd0bbaec48e2e3f648827e417b3 |
--- /dev/null |
+++ b/LayoutTests/fast/media/mq-relative-constraints-10.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>REM lengths in media queries relative to initial value</title> |
+ <style> |
+ html { font-size: 10000px } |
+ body { font-size: 16px } |
+ @media (min-width: 2rem) { |
+ #t1 { color: green } |
+ } |
+ @media (min-height: 2rem) { |
+ #t2 { color: green } |
+ } |
+ @media (min-device-width: 2rem) { |
+ #t3 { color: green } |
+ } |
+ @media (min-device-height: 2rem) { |
+ #t4 { color: green } |
+ } |
+ </style> |
+</head> |
+<body> |
+ <p><span id="t1">This</span> <span id="t2">text</span> <span id="t3">should<span> <span id="t4">be green.</span></p> |
+</body> |
+</html> |