Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: LayoutTests/fast/media/mq-relative-constraints-10.html

Issue 22258007: [CSSMQ] Use initial values as base for relative units. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: --no-find-copies upload Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-relative-constraints-10-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-relative-constraints-10-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698