testing/web-platform/tests/css/css-pseudo/first-letter-text-and-display-change.html
author dadaa <daisuke.akatsuka@birchill.co.jp>
Wed, 09 Jul 2025 04:53:58 +0000 (5 hours ago)
changeset 795836 a5500d271fe3a1fefb4d81d96fc4abd00d9eade7
parent 521372 a26f4f21b33a53e0775d1a819bf78e36146fb4e4
permissions -rw-r--r--
Bug 1957280: Limit user's mouse amount for tree component r=places-reviewers,reusable-components-reviewers,masayuki,mstriemer Differential Revision: https://phabricator.services.mozilla.com/D251224
<!doctype html>
<title>CSS Test: Change display for the ::first-letter container while replacing text node</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#first-letter-pseudo">
<link rel="match" href="../reference/pass_if_letter_uppercase.html">
<style>
  #container::first-letter { text-transform: uppercase }
  #container.ib { display: inline-block }
</style>
<body>
  <p>Test passes if the letter "F" in the words "Filler Text" below is in upper-case.</p>
  <div id="container">Test not run</div>
</body>
<script>
  container.offsetTop;
  container.className = "ib";
  container.appendChild(document.createTextNode("filler Text"));
  container.firstChild.remove();
</script>