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

Side by Side Diff: LayoutTests/fast/css/style-sharing-with-descendant-selectors.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 div { color: green; }
4 div.red span { color: red; }
5 </style>
6 <script>
7 onload = function() {
8 var className = 'red';
9 div1.classList.add(className);
10 div1.classList.remove(className);
11 div2.classList.add(className);
12 }
13 </script>
14 <body>
15 <p>This test ensures we don't improperly share styles for elements that match di fferent descendant selectors.</p>
16 <div id="div1"><b><span>This line should be green.</span></b></div>
17 <div id="div2"><b><span>This line should be red.</span></b></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698