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

Unified Diff: LayoutTests/fast/css/style-sharing-with-descendant-selectors-expected.html

Issue 29633003: Avoid style sharing with mis-matched descendant selectors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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: LayoutTests/fast/css/style-sharing-with-descendant-selectors-expected.html
diff --git a/LayoutTests/fast/css/style-sharing-with-descendant-selectors-expected.html b/LayoutTests/fast/css/style-sharing-with-descendant-selectors-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..c535f38011cc7900df6d5a24c5660423c149ccdb
--- /dev/null
+++ b/LayoutTests/fast/css/style-sharing-with-descendant-selectors-expected.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<style>
+div { color: green; }
+div.red span { color: red; }
+</style>
+<body>
+<p>This test ensures we don't improperly share styles for elements that match different descendant selectors.</p>
+<div><b><span>This line should be green.</span></b></div>
+<div class="red"><b><span>This line should be red.</span></b></div>

Powered by Google App Engine
This is Rietveld 408576698