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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing.html

Issue 1562493002: Cousins may not share style when ascendant affected bits set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing.html b/third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing.html
new file mode 100644
index 0000000000000000000000000000000000000000..9c38ecaa07952d47ef65889b5216c749cf6d580d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+ :focus { outline: none }
+ li:focus span { background: green }
+ li { list-style-type: none }
+ li span { color: green }
+</style>
+<p>You should see a green rectangle below.</p>
+<li>
+ <div></div>
+</li>
+<li>
+ <div>
+ <span></span>
+ </div>
+</li>
+<li tabIndex="1">
+ <div>
+ <span id="span">FAIL</span>
+ </div>
+</li>
+<script>
+ description("childrenOrSiblingsAffectedBy* disables style sharing");
+
+ document.body.offsetTop;
+ document.querySelectorAll("li")[2].focus();
+ shouldBeEqualToString("getComputedStyle(span).backgroundColor", "rgb(0, 128, 0)");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/children-affected-by-style-sharing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698