1
0
Fork 0
firefox/testing/web-platform/tests/css/css-pseudo/first-letter-block-to-inline.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
607 B
HTML

<!DOCTYPE html>
<title>CSS Test: ::first-letter stops applying to element becoming inline.</title>
<link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org">
<link rel="match" href="first-letter-block-to-inline-ref.html">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo">
<style>
#outer.block::first-letter { color: red }
#outer.block { display: block }
</style>
<span id="outer" class="block">
<span id="inner">This text should be green.</span>
</span>
<script>
outer.offsetTop;
outer.className = "";
inner.style.color = "green";
</script>