Index: third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html |
diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html b/third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d4689424ca910c5ddcf2ef8cbee9b4489e5ce8a |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/paint/invalidation/first-line-with-first-letter.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<style> |
+ #t1::first-letter { color: white } |
+ #t1::first-line { background: red } |
+ #t1.green::first-line { background: green } |
+</style> |
+<div id="t1"> |
+ First letter should be white, and the first line should have a green |
+ background. |
+</div> |
+<script> |
+ if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+ |
+ requestAnimationFrame(() => |
+ requestAnimationFrame(() => { |
+ t1.className = "green"; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ })); |
+</script> |