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