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

Side by Side Diff: LayoutTests/css3/supports-dom-api.html

Issue 1095293007: Restrict __qem usage to UA sheets (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/css3/supports-dom-api-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("Test window.CSS.supports()"); 8 description("Test window.CSS.supports()");
9 9
10 shouldBeTrue('CSS.supports("(display: none)")'); 10 shouldBeTrue('CSS.supports("(display: none)")');
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 shouldBeFalse('CSS.supports("", "")'); 77 shouldBeFalse('CSS.supports("", "")');
78 shouldBeFalse('CSS.supports(true, "")'); 78 shouldBeFalse('CSS.supports(true, "")');
79 shouldBeFalse('CSS.supports([], "none")'); 79 shouldBeFalse('CSS.supports([], "none")');
80 shouldBeFalse('CSS.supports("display", "")'); 80 shouldBeFalse('CSS.supports("display", "")');
81 shouldBeFalse('CSS.supports("display:", "none")'); 81 shouldBeFalse('CSS.supports("display:", "none")');
82 shouldBeTrue('CSS.supports("z-index", 1)'); 82 shouldBeTrue('CSS.supports("z-index", 1)');
83 shouldBeFalse('CSS.supports("content", [])'); 83 shouldBeFalse('CSS.supports("content", [])');
84 shouldBeFalse('CSS.supports("content", "!important")'); 84 shouldBeFalse('CSS.supports("content", "!important")');
85 shouldBeFalse('CSS.supports("(display: none)", undefined)'); 85 shouldBeFalse('CSS.supports("(display: none)", undefined)');
86 86
87 // Test that __qem is internal
88 shouldBeFalse('CSS.supports("margin", "1__qem")');
89
87 // shorthands and CSS wide keywords 90 // shorthands and CSS wide keywords
88 shouldBeTrue('CSS.supports("border", "1px solid #000")'); 91 shouldBeTrue('CSS.supports("border", "1px solid #000")');
89 shouldBeTrue('CSS.supports("border", "inherit")'); 92 shouldBeTrue('CSS.supports("border", "inherit")');
90 shouldBeFalse('CSS.supports("border", "1px solid inherit")'); 93 shouldBeFalse('CSS.supports("border", "1px solid inherit")');
91 shouldBeFalse('CSS.supports("border", "inherit solid #000")'); 94 shouldBeFalse('CSS.supports("border", "inherit solid #000")');
92 shouldBeTrue('CSS.supports("border-bottom", "thick green")'); 95 shouldBeTrue('CSS.supports("border-bottom", "thick green")');
93 shouldBeTrue('CSS.supports("border-bottom", "inherit")'); 96 shouldBeTrue('CSS.supports("border-bottom", "inherit")');
94 shouldBeFalse('CSS.supports("border-bottom", "thick green inherit")'); 97 shouldBeFalse('CSS.supports("border-bottom", "thick green inherit")');
95 shouldBeFalse('CSS.supports("border-bottom", "inherit thick green")'); 98 shouldBeFalse('CSS.supports("border-bottom", "inherit thick green")');
96 shouldBeTrue('CSS.supports("border-left", "thick green")'); 99 shouldBeTrue('CSS.supports("border-left", "thick green")');
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 shouldBeTrue('CSS.supports("transform", "inherit")'); 143 shouldBeTrue('CSS.supports("transform", "inherit")');
141 shouldBeFalse('CSS.supports("transform", "scaleX(2) inherit")'); 144 shouldBeFalse('CSS.supports("transform", "scaleX(2) inherit")');
142 shouldBeFalse('CSS.supports("transform", "inherit scaleX(2)")'); 145 shouldBeFalse('CSS.supports("transform", "inherit scaleX(2)")');
143 shouldBeTrue('CSS.supports("transition", "margin-left 4s")'); 146 shouldBeTrue('CSS.supports("transition", "margin-left 4s")');
144 shouldBeTrue('CSS.supports("transition", "inherit")'); 147 shouldBeTrue('CSS.supports("transition", "inherit")');
145 shouldBeFalse('CSS.supports("transition", "margin-left inherit")'); 148 shouldBeFalse('CSS.supports("transition", "margin-left inherit")');
146 shouldBeFalse('CSS.supports("transition", "inherit 4s")'); 149 shouldBeFalse('CSS.supports("transition", "inherit 4s")');
147 </script> 150 </script>
148 </body> 151 </body>
149 </html> 152 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/css3/supports-dom-api-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698