summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html
blob: 88b1f34362279e156559e49d6d22f9ca48f5237f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!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>