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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html

Issue 2492783002: Skip independent inherited property propagation to pseudo elements. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html b/third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html
new file mode 100644
index 0000000000000000000000000000000000000000..719a7cbff02a24bbe9e193194a15f1c99b038ace
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/independent-inherit-update-pseudo.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+ div { visibility: hidden }
+ div::before {
+ content: "FAIL";
+ visibility: visible;
+ }
+ .pass { visibility: visible }
+ .pass::before { content: "PASS" }
+</style>
+<p>You should see the word PASS below.</p>
+<div id="testElement"></div>
+<script>
+ test(() => {
+ assert_equals(getComputedStyle(testElement, "::before").content, '"FAIL"', "Precondition.");
+ testElement.className = "pass";
+ assert_equals(getComputedStyle(testElement, "::before").content, '"PASS"', "::before content changed.");
+ }, "Check that inherited property propagation does not skip pseudo element updates.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698