<!DOCTYPE html>
<title>CSS Pseudo-Element Test: ::first-line style should not trigger transitions on elements</title>
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
<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>