summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html')
-rw-r--r--testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html b/testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html
new file mode 100644
index 0000000000..88b1f34362
--- /dev/null
+++ b/testing/web-platform/tests/css/css-pseudo/first-line-inherited-with-transition.html
@@ -0,0 +1,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>