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/atapply/at-apply-in-regular-property.html

Issue 1769373002: Disallow @apply rules in non-custom property declarations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@foo
Patch Set: initialize variable :< Created 4 years, 9 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 | third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-in-regular-property-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 <script src="../../../resources/testharness.js"></script> 2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script> 3 <script src="../../../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 #e { 5 #e {
6 background-color: green; 6 background-color: green;
7 width: 100px; 7 width: 100px;
8 height: 100px; 8 height: 100px;
9 9
10 --red: { red }; 10 --red: { red };
11 background-color: @apply --red; 11 background-color: @apply --red;
12 background-color: var(--invalid, @apply --red);
12 13
13 --border: 5px solid; 14 --border: 5px solid;
14 border: var(--border) @apply --red; 15 border: var(--border) @apply --red;
15 } 16 }
16 </style> 17 </style>
17 <div id=e> 18 <div id=e>
18 </div> 19 </div>
19 <script> 20 <script>
20 test(function(){ 21 test(function(){
21 assert_equals(getComputedStyle(e).backgroundColor, "rgb(0, 128, 0)"); 22 assert_equals(getComputedStyle(e).backgroundColor, "rgb(0, 128, 0)");
22 assert_equals(getComputedStyle(e).borderColor, "rgb(0, 0, 0)"); 23 assert_equals(getComputedStyle(e).borderColor, "rgb(0, 0, 0)");
23 }, "Basic usage of @apply with non-shorthand properties"); 24 }, "Basic usage of @apply with non-shorthand properties");
24 </script> 25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/atapply/at-apply-in-regular-property-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698