Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Pseudo-Element Test: ::first-line style should not trigger transitions on elements</title>
<link rel="match" href="first-line-inherited-with-transition-ref.html">
<style>
p::first-line { color: orange; }
span {
background-color: black;
transition: background-color 1000s steps(2, start);
}
span.lime {
background-color: lime;
}
</style>
<p><span id="s">Orange on green<br>Black on green</span></p>
<script>
s.offsetTop;
s.className = "lime";
</script>