testing/web-platform/tests/css/css-content/quotes-first-letter-004.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (12 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 664420 63a6d778478d751ff24d8e2e14f14c24cd4ab088
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!doctype html>
<meta charset=utf-8>
<title>CSS-content test: first letter with quotes interaction dynamic style 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>
  #outer { quotes: "'X" "'Y"; }
  #outer::first-letter { color: red; }
  #outer.green::first-letter { color: green; }
</style>

<div id="outer"><div id="inner"><q>First letter</q></div></div>

<script>
  document.body.offsetTop;
  outer.className = "green";
</script>