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

Unified Diff: LayoutTests/fast/css/media-query-basing-rem-unit-expected.txt

Issue 18360007: MediaQueryEvaluator should use default style for evaluating "rem". Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added layout test for seamless iframe Created 7 years, 5 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
Index: LayoutTests/fast/css/media-query-basing-rem-unit-expected.txt
diff --git a/LayoutTests/fast/css/media-query-basing-rem-unit-expected.txt b/LayoutTests/fast/css/media-query-basing-rem-unit-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..ab028ac98c814593b6bb5a24c6359893fab3e18a
--- /dev/null
+++ b/LayoutTests/fast/css/media-query-basing-rem-unit-expected.txt
@@ -0,0 +1,13 @@
+Test for issue 258200:CSS Media Queries are basing "rem" unit on style data.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS window.getComputedStyle(document.body).backgroundColor is "rgb(0, 128, 0)"
+PASS window.getComputedStyle(document.body).backgroundColor is "rgb(0, 128, 0)"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+Resize the window to be larger than #1, but smaller than #2. If the screen turns red, the browser is basing 'rem' units in MQs on style data, which is a spec violation. (It should be equal to the initial font size, same as the 'em' unit, to avoid circularity issues.)
+#1: 50rem (based on style data)
+#2: 50 * 16px (assumed to be the initial font size)

Powered by Google App Engine
This is Rietveld 408576698