summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-with-before-after-ref.html
blob: fcee7995052717c0509c58a76fa1f420434ceb43 (plain)
1
2
3
4
5
6
7
8
9
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>