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

Unified Diff: third_party/WebKit/LayoutTests/paint/invalidation/first-line-inline-child.html

Issue 2728383002: Make ::first-line invalidation work when added or removed. (Closed)
Patch Set: Fixed review issues. Created 3 years, 9 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: third_party/WebKit/LayoutTests/paint/invalidation/first-line-inline-child.html
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/first-line-inline-child.html b/third_party/WebKit/LayoutTests/paint/invalidation/first-line-inline-child.html
new file mode 100644
index 0000000000000000000000000000000000000000..6d1a2be488c1525bba18ac0c502ea13fc4eb2ef7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/first-line-inline-child.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+ ::first-line { color: red }
+ .green { color: green }
+</style>
+<div class="green">
+ <span>This text should be green</span>
+</div>
+<script>
+ if (window.testRunner)
+ testRunner.waitUntilDone();
+
+ requestAnimationFrame(() =>
+ requestAnimationFrame(() => {
+ document.querySelector("span").className = "green";
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }));
+</script>

Powered by Google App Engine
This is Rietveld 408576698