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

Side by Side Diff: LayoutTests/css3/device-adapt/viewport-insert-rule-after.html

Issue 19632002: Support 'extend-to-zoom' viewport descriptor value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Insert an @viewport rule after an existing one (CSSOM)</title> 4 <title>Insert an @viewport rule after an existing one (CSSOM)</title>
5 <style> 5 <style>
6 @viewport { 6 @viewport {
7 width: 500px; 7 width: 500px;
8 } 8 }
9 </style> 9 </style>
10 <script> 10 <script>
11 if (window.testRunner)
12 testRunner.addUserStyleSheet("@viewport { width: extend-to-zoom 980p x; min-zoom: 0.25; max-zoom: 5; }", true);
kenneth.r.christiansen 2013/07/17 16:44:30 indentation seems wrong and can't this be merged w
13
11 function test() { 14 function test() {
12 if (window.testRunner) { 15 if (window.testRunner) {
13 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
14 document.styleSheets[0].insertRule("@viewport {width: 1000px}", 1); 17 document.styleSheets[0].insertRule("@viewport {width: 1000px}", 1);
15 document.body.offsetWidth; // Trigger style resolving 18 document.body.offsetWidth; // Trigger style resolving
16 alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352)) ; 19 alert(internals.configurationForViewport(document, 1, 320, 480, 320, 352)) ;
17 } 20 }
18 } 21 }
19 </script> 22 </script>
20 </head> 23 </head>
21 <body onload="test()"></body> 24 <body onload="test()"></body>
22 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698