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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('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 <style>
5 div { visibility: hidden }
6 div::before {
7 content: "FAIL";
8 visibility: visible;
9 }
10 .pass { visibility: visible }
11 .pass::before { content: "PASS" }
12 </style>
13 <p>You should see the word PASS below.</p>
14 <div id="testElement"></div>
15 <script>
16 test(() => {
17 assert_equals(getComputedStyle(testElement, "::before").content, '"FAIL" ', "Precondition.");
18 testElement.className = "pass";
19 assert_equals(getComputedStyle(testElement, "::before").content, '"PASS" ', "::before content changed.");
20 }, "Check that inherited property propagation does not skip pseudo element u pdates.");
21 </script>
OLDNEW
« 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