summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-with-out-of-flow.html
blob: 76d50254506086bfd3364b4ebcab3384e4d6e4a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
<link rel="match" href="first-line-with-out-of-flow-ref.html">
<title>CSS Test: ::first-line with out of flow</title>
<style>
  #block::first-line { color: green; }
</style>
<div id="block">
  <div style="position: absolute"><br></div>
  <div style="float: right"><br></div>
  <div>
    <div style="position: absolute"><br></div>
    <div style="float: right"><br></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>