Index: third_party/WebKit/LayoutTests/fast/css/button-first-line-change-color.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/button-first-line-change-color.html b/third_party/WebKit/LayoutTests/fast/css/button-first-line-change-color.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2c1aa67fff1eb246dc09570f3748c586ee2e1e4b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/button-first-line-change-color.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<style> |
chrishtr
2015/12/03 18:41:56
Can this invalidation change be unittested instead
Xianzhu
2015/12/03 19:10:40
Yes, but I feel a layout test provides better cove
|
+ #button::first-line { color: red; } |
+ #button.green::first-line { color: green; } |
+</style> |
+<button id="button"> |
+ <div> |
+ <p>This text should be green.</p> |
+ </div> |
+</button> |
+<script src="../../resources/run-after-layout-and-paint.js"></script> |
+<script> |
+runAfterLayoutAndPaint(function() { |
+ document.getElementById('button').className = 'green'; |
+}, true); |
+</script> |