commit 5ea2407af277878756eef5539935066c443bf35c
parent 51a2fa4c6d7e14e3a59b4506ca699c4d959169ec
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Thu, 18 Dec 2025 17:07:03 +0000
Bug 2006371 - Make sure the start value of a transition doesn't depend on interleaving fallback styles. r=layout-anchor-positioning-reviewers,dshin
The difference between Firefox and other browsers is that other browsers
start the transition in the 50px value because of interleaving.
That's not the point of the test tho, so let's tweak it to make sure
that the expected transition runs.
Differential Revision: https://phabricator.services.mozilla.com/D277032
Diffstat:
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/testing/web-platform/meta/css/css-anchor-position/position-try-cascade.html.ini b/testing/web-platform/meta/css/css-anchor-position/position-try-cascade.html.ini
@@ -1,3 +0,0 @@
-[position-try-cascade.html]
- [@position-try rule does not win over transitions]
- expected: FAIL
diff --git a/testing/web-platform/tests/css/css-anchor-position/position-try-cascade.html b/testing/web-platform/tests/css/css-anchor-position/position-try-cascade.html
@@ -87,9 +87,14 @@
<!-- Transitions -->
<style>
- #abs_transition.move {
- top: 10px !important;
- transition: top 1000s steps(2, start);
+ #abs_transition {
+ top: 50px;
+
+ &.move {
+ top: 10px !important;
+ transition: top 1000s steps(2, start);
+ }
+ }
</style>
<div class=cb>
<div id=abs_transition class=abs></div>