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

Side by Side Diff: LayoutTests/css3/device-adapt/viewport-user-agent-style.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>@viewport user agent stylesheet</title> 4 <title>@viewport user agent stylesheet</title>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script> 6 <script src="../../resources/testharnessreport.js"></script>
7 <script> 7 <script>
8 if (window.testRunner) { 8 if (window.testRunner) {
9 // FIXME: Emulate the android viewport UA stylesheet. We should test this 9 // FIXME: Emulate the android viewport UA stylesheet. We should test this
10 // based on the platform we're building for 10 // based on the platform we're building for
11 testRunner.addUserStyleSheet("@viewport {min-width: 980px}", true); 11 testRunner.injectStyleSheet("@viewport {min-width: 980px}", true);
12 internals.settings.setViewportEnabled(true); 12 internals.settings.setViewportEnabled(true);
13 } 13 }
14 </script> 14 </script>
15 <style> 15 <style>
16 html, body { width: 100%; height: 100%; margin: 0 } 16 html, body { width: 100%; height: 100%; margin: 0 }
17 </style> 17 </style>
18 </head> 18 </head>
19 <body style="overflow: hidden;"> 19 <body style="overflow: hidden;">
20 <div id="log"></div> 20 <div id="log"></div>
21 <script> 21 <script>
22 test(function(){ 22 test(function(){
23 assert_equals(document.body.offsetWidth, 980); 23 assert_equals(document.body.offsetWidth, 980);
24 }, "Check that we get a viewport width of 980px from the user agent styl esheet."); 24 }, "Check that we get a viewport width of 980px from the user agent styl esheet.");
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/device-adapt/viewport-relative-font.html ('k') | LayoutTests/css3/device-adapt/viewport-user-style.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698