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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/outline-invert.html

Issue 2081633002: Reject invert for outline-color at parse time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New attempt. Created 4 years, 6 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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <style>
5 p { outline-color: invert }
6 p { outline: 3px solid invert }
7 </style>
8 <script>
9 test(() => {
10 assert_equals(document.styleSheets[0].cssRules.length, 2, "Syntax error in style rules.");
11 }, "Check that both style rules were parsed.");
12
13 test(() => {
14 assert_equals(document.styleSheets[0].cssRules[0].style.length, 0, "Outl ine-color rule with invert was not dropped.");
15 }, "Check that outline-color:invert is dropped.");
16
17 test(() => {
18 assert_equals(document.styleSheets[0].cssRules[1].style.length, 0, "Outl ine shorthand with invert was not dropped.");
19 }, "Check that outline shorthand with invert is dropped.");
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698