summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-on-ancestor-block.html
blob: 6b797107df80156b511b9dc58c5ee40d6114cfc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
<link rel="match" href="first-line-on-ancestor-block-ref.html">
<style>
  #block::first-line { color: green; }
</style>
<div id="block">
  <div>
    <div style="color: blue">
      <div>
        <span><span>This text should be green.</span></span><br>
        This text should be blue.
      </div>
    </div>
  </div>
</div>