summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/normal-flow/block-in-inline-first-line-001.html
blob: 5dac0887e233e1873d6f5dd1d4c5b45e463a9201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#anonymous-block-level" />
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo" />
<link rel="match" href="block-in-inline-first-line-001-ref.html"/>
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org" />
<style>
div::first-line {
  background: orange;
}
</style>
<body>
  <div>
    <span>
      First line.<br>
      Second line.
      <div>
        First line in 1st block box.<br>
        Second line.
      </div>
      <div>
        First line in 2nd block box.<br>
        Second line.
      </div>
      First line after block-in-inline is not ::first-line.<br>
      Second line.
    </span>
  </div>
</body>