Skip to content

Commit b2fc415

Browse files
Make sure the start value of a transition doesn't depend on interleaving fallback styles. (#56868)
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 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2006371 gecko-commit: 4a637a959dac6bbb8b055489b3090d63351bd0c2 gecko-reviewers: layout-anchor-positioning-reviewers, dshin Co-authored-by: Emilio Cobos Álvarez <[email protected]>
1 parent f46b0a0 commit b2fc415

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

css/css-anchor-position/position-try-cascade.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@
8787

8888
<!-- Transitions -->
8989
<style>
90-
#abs_transition.move {
91-
top: 10px !important;
92-
transition: top 1000s steps(2, start);
90+
#abs_transition {
91+
top: 50px;
92+
93+
&.move {
94+
top: 10px !important;
95+
transition: top 1000s steps(2, start);
96+
}
97+
}
9398
</style>
9499
<div class=cb>
95100
<div id=abs_transition class=abs></div>

0 commit comments

Comments
 (0)