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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/css/outline-invert.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/outline-invert.html b/third_party/WebKit/LayoutTests/fast/css/outline-invert.html
new file mode 100644
index 0000000000000000000000000000000000000000..332d92dab7811ce99e536c851910a3c714c4a198
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/outline-invert.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+ p { outline-color: invert }
+ p { outline: 3px solid invert }
+</style>
+<script>
+ test(() => {
+ assert_equals(document.styleSheets[0].cssRules.length, 2, "Syntax error in style rules.");
+ }, "Check that both style rules were parsed.");
+
+ test(() => {
+ assert_equals(document.styleSheets[0].cssRules[0].style.length, 0, "Outline-color rule with invert was not dropped.");
+ }, "Check that outline-color:invert is dropped.");
+
+ test(() => {
+ assert_equals(document.styleSheets[0].cssRules[1].style.length, 0, "Outline shorthand with invert was not dropped.");
+ }, "Check that outline shorthand with invert is dropped.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698