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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/first-line-change-child-color.html

Issue 1473363003: Invalidate first line display item clients when first line style changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle inherited firstline style Created 5 years, 1 month 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/fast/css/first-line-change-child-color.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/first-line-change-child-color.html b/third_party/WebKit/LayoutTests/fast/css/first-line-change-child-color.html
new file mode 100644
index 0000000000000000000000000000000000000000..8f4d6885483dd895285f6320a34f72a8594deb1f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/first-line-change-child-color.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<style>
+ #block { color: green; }
+ #block::first-line { color: red; }
+ .green { color: green; }
+</style>
+<div id="block">
+ <div>
+ <p>Red<span id="t">This text should be green.<span>Red</p>
mstensho (USE GERRIT) 2015/12/01 12:29:49 <span> -> </span>
Xianzhu 2015/12/01 20:06:25 Done.
+ </div>
+</div>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+runAfterLayoutAndPaint(function() {
+ document.getElementById('t').className = 'green';
+}, true);
+</script>

Powered by Google App Engine
This is Rietveld 408576698