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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/rule-change.html

Issue 2253053002: CSS: RuleFeature::clear clears all invalidation sets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 4 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 | third_party/WebKit/Source/core/css/RuleFeature.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 <html>
3 <head>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 </head>
7 <body>
8 <div></div>
9 <div id="t1">
10 <div id="t2"></div>
11 <div></div>
12 <div></div>
13 </div>
14 <script>
15 test(() => {
16 var s = document.createElement("style");
17 s.textContent = "div ~ div > :nth-child(even) { background-color: red }" ;
18 var head = document.querySelector("head");
19 head.appendChild(s);
20 t2.offsetTop;
21 head.removeChild(s);
22 t2.offsetTop;
23
24 t1.insertBefore(document.createElement("div"), t2);
25 assert_equals(internals.updateStyleAndReturnAffectedElementCount(), 1);
26 }, "Removed style rules should not cause invalidation");
27 </script>
28 <body>
29 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698