summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-content/quotes-first-letter-002.html
blob: 8c40b1418a3ca0e3074ce6130ad372f8bb03c263 (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
<!doctype html>
<meta charset=utf-8>
<title>CSS-content test: first letter with quotes interaction dynamic attachment</title>
<link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com">
<link rel="match" href="reference/quotes-first-letter-002-ref.html">
<link rel=help href="https://drafts.csswg.org/css-content/#quotes">

<style>
  .first-letter::first-letter { color: green; }
</style>

<q>
  <div id="outer">
    <q>Should not crash or assert and all six quotes should be displayed.</q>
    <div id="inner">
      <q>Should not crash or assert and all six quotes should be displayed.</q>
    </div>
  </div>
</q>

<script>
  document.body.offsetTop;
  inner.className = 'first-letter';
  outer.className = 'first-letter';
</script>