summaryrefslogtreecommitdiffstats
path: root/layout/reftests/first-letter/dynamic-5.html
blob: 2d5638c3d31b5a0d80068d0f8f8c6e651603bb51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<style>
fieldset::first-letter {
  color: red;
}
fieldset.f::first-letter {
  color: green;
}
</style>
<fieldset>Text</fieldset>
<script>
window.onload = function() {
  document.querySelector('fieldset').classList.add('f');
}
</script>