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

Side by Side Diff: LayoutTests/css3/device-adapt/viewport-initial-width-zero.html

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Use initial height for auto height if initial width is zero</title> 4 <title>Use initial height for auto height if initial width is zero</title>
5 <link rel="help" href="http://www.w3.org/TR/css-device-adapt/#constraining-v iewport-descriptor-values"> 5 <link rel="help" href="http://www.w3.org/TR/css-device-adapt/#constraining-v iewport-descriptor-values">
6 <style type="text/css"> 6 <style type="text/css">
7 @viewport { 7 @viewport {
8 width: 100px; 8 width: 100px;
9 height: auto; 9 height: auto;
10 } 10 }
11 </style> 11 </style>
12 <script type="text/javascript"> 12 <script type="text/javascript">
13 if (window.testRunner) 13 if (window.testRunner)
14 testRunner.addUserStyleSheet("@viewport { width: extend-to-zoom 980p x; min-zoom: 0.25; max-zoom: 5; height: auto; zoom: auto; user-zoom: zoom; orien tation: auto }", true); 14 testRunner.injectStyleSheet("@viewport { width: extend-to-zoom 980px ; min-zoom: 0.25; max-zoom: 5; height: auto; zoom: auto; user-zoom: zoom; orient ation: auto }", true);
15 15
16 function test() { 16 function test() {
17 if (window.testRunner) { 17 if (window.testRunner) {
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 alert(internals.viewportAsText(document, 1, 0, 200)); 19 alert(internals.viewportAsText(document, 1, 0, 200));
20 } 20 }
21 } 21 }
22 </script> 22 </script>
23 </head> 23 </head>
24 <body onload="test();"></body> 24 <body onload="test();"></body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698