summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-content/quotes-first-letter-001.html
blob: 651615f5259d0cf4b972552e6e6a454c1127b7e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<meta charset=utf-8>
<title>CSS-content test: first letter with quotes interaction dynamic quotes change</title>
<link rel="author" title="Daniil Sakhapov" href="sakhapov@google.com">
<link rel="match" href="reference/quotes-first-letter-001-ref.html">
<link rel=help href="https://drafts.csswg.org/css-content/#quotes">

<style>
  #root { quotes: "A" "B"; }
  #root.xy-quotes { quotes: "'X" "'Y"; }
  #root::first-letter { color: green; }
</style>

<div id="root"><q>First letter</q></div>

<script>
  document.body.offsetTop;
  root.className = "xy-quotes";
</script>