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

Side by Side Diff: LayoutTests/css3/device-adapt/viewport-invalid-values-001.html

Issue 23604037: Recompute percentage based @viewport on resize. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review issue Created 7 years, 3 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
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>'initial' and 'inherit' are invalid values for @viewport descriptors< /title>
5 <script src="../../resources/testharness.js"></script>
6 <script src="../../resources/testharnessreport.js"></script>
7 <script>
8 if (window.testRunner) {
9 testRunner.enableFixedLayoutMode(true);
10 internals.settings.setViewportEnabled(true);
11 }
12 </script>
13 <style>
14 /* 'initial' and 'inherit' are invalid keywords for viewport descriptors . */
15 @viewport { min-width: initial; }
16 @viewport { min-width: inherit; }
17 </style>
18 </head>
19 <body>
20 <div id="log"></div>
21 <script>
22 test(function(){
23 assert_equals(document.styleSheets[0].cssRules.length, 2);
24 }, "Check that both @viewport rules are created.");
25 test(function(){
26 assert_equals(document.styleSheets[0].cssRules[0].style.length, 0);
27 }, "Check that \"min-width: initial\" is dropped.");
28 test(function(){
29 assert_equals(document.styleSheets[0].cssRules[0].style.length, 0);
30 }, "Check that \"min-width: inherit\" is dropped.");
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698