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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/variables/variables-in-at-rules.html

Issue 2478623003: Disallow CSS custom properties as descriptors (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/variables/variables-in-at-rules-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4
5 <style>
6 @font-face {
7 --invalid-var: 1;
8 }
9 @viewport {
10 --invalid-var: 2;
11 }
12 @keyframes foo {
13 --invalid-var: 3;
14 0% { --valid-var: 4; }
15 100% { left: 10px; }
16 }
17 </style>
18
19 <script>
20 test(() => assert_equals(document.styleSheets[0].cssRules[0].cssText, "@font-fac e { }"),
21 "Custom properties are not allowed in @font-face rules");
22 test(() => assert_equals(document.styleSheets[0].cssRules[1].cssText, "@viewport { }"),
23 "Custom properties are not allowed in @viewport rules");
24 test(() => assert_equals(document.styleSheets[0].cssRules[2].cssText,
25 `@keyframes foo {
26 0% { --valid-var: 4; }
27 100% { left: 10px; }
28 }`), "Custom properties are not allowed in the outer scope of @keyframes rules") ;
29 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/variables/variables-in-at-rules-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698