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

Side by Side Diff: LayoutTests/fast/css/style-sharing-grand-parent-invalidate.html

Issue 30453002: Should not allow style sharing if grandparents matches different rule chain (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@build_hack
Patch Set: reupload 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/style-sharing-grand-parent-invalidate-expected.txt » ('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 <html>
3 <head>
4 <style>
5 .outerx .mid .inner {
6 background-color: red;
7 }
8 .outery .mid .inner {
9 background-color: green;
10 }
11 .inner {
12 width: 50px;
13 height: 50px;
14 }
15 </style>
16 <script>
17 function test() {
18 if (window.testRunner)
19 testRunner.dumpAsText();
20
21 var x = document.getElementById("x");
22 x.classList.add("outerx");
23
24 var y = document.getElementById("y");
25 y.classList.add("outery");
26
27 var colorX = getComputedStyle(x.children[0].children[0]).backgroundColor;
28 var colorY = getComputedStyle(y.children[0].children[0]).backgroundColor;
29
30 var result = document.getElementById("result")
31 if (colorX == colorY)
32 result.innerHTML = "FAIL";
33 else
34 result.innerHTML = "SUCCESS";
35 }
36 </script>
37 </head>
38 <body onload="test()">
39 This test succeeds if the two blocks show red and green repectively: <span id="r esult"></span>
40 <div id="x">
41 <div class="mid">
42 <div class="inner">
43 </div>
44 </div>
45 </div>
46 <div id="y">
47 <div class="mid">
48 <div class="inner">
49 </div>
50 </div>
51 </div>
52 </body>
53 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/style-sharing-grand-parent-invalidate-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698