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

Unified Diff: LayoutTests/css3/viewport-percentage-lengths/viewport-percentage-resize-font-size-expected.html

Issue 13771002: Recalc styles on resize if we have viewport units. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 8 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/css3/viewport-percentage-lengths/viewport-percentage-resize-font-size-expected.html
diff --git a/LayoutTests/css3/viewport-percentage-lengths/viewport-percentage-resize-font-size-expected.html b/LayoutTests/css3/viewport-percentage-lengths/viewport-percentage-resize-font-size-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..82c1faa06363ff6d580eb04aca5b26ff4f089a4e
--- /dev/null
+++ b/LayoutTests/css3/viewport-percentage-lengths/viewport-percentage-resize-font-size-expected.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Test font-size in viewport units resizes when window is resized</title>
+</head>
+<frameset rows="400px,*">
+<frameset cols="600px,*">
+<frame src='data:text/html,
+<style type="text/css">
+ #test-width { font-size: 60px; line-height: 60px; }
+ #test-height { font-size: 40px; line-height: 40px; }
+ #test-min { font-size: 40px; line-height: 40px; }
+ #test-max { font-size: 60px; line-height: 60px; }
+</style>
+<div></div>
+<p>Issue 124331: This tests that font-size and line-height values specified in viewport units scale with the viewport.</p>
+<p>The font sizes should stay sized in proportion to the viewport dimensions.</p>
+<div id="test-width"> width </div>
+<div id="test-height"> height </div>
+<div id="test-min"> minimum </div>
+<div id="test-max"> maximum </div>
+'></frame>
+<frame src=""></frame>
+</frameset>
+<frame src=""></frame>
+</frameset>
+</html>

Powered by Google App Engine
This is Rietveld 408576698