Index: third_party/WebKit/LayoutTests/fast/css/first-line-change-color-direct.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/first-line-change-color-direct.html b/third_party/WebKit/LayoutTests/fast/css/first-line-change-color-direct.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..15f31ae75b32fabba58ad388ab34affc8446b113 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/first-line-change-color-direct.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<style> |
+ #t::first-line { color: red; } |
+ #t.green::first-line { color: green; } |
+</style> |
+<div id="t">This text should be green.<br>This text should be black.</div> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ document.getElementById('t').className = 'green'; |
+}, true); |
+</script> |