summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html')
-rw-r--r--testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html b/testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html
new file mode 100644
index 0000000000..fcee799505
--- /dev/null
+++ b/testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<style>
+ #target::first-line { font-size: 150%; }
+</style>
+
+<div id="target"><span style='color:red'>red</span> <span style='color:green'>green</span> <span style='color:blue'>blue</span><br />
+ <span style='color:red'>red</span> <span style='color:green'>green</span> <span style='color:blue'>blue</span>
+</div>
+
+<p>Both lines above (inside and outside <code>::first-line</code>) should have the same colors.</p>