1
0
Fork 0
firefox/testing/web-platform/tests/css/css-transitions/allow-discrete-auto-inset.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

29 lines
714 B
HTML

<!DOCTYPE html>
<title>CSS Transitions Test: discrete transition for auto inset</title>
<link rel="help" href="https://drafts.csswg.org/css-transitions-2/#transition-behavior-property">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
#container {
position: relative;
width: 100px;
height: 100px;
background: green;
}
#abs {
position: absolute;
transition: top 1000s step-start allow-discrete;
inset: 0px;
background: red;
}
#abs.auto {
top: auto;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container">
<div id="abs"></div>
</div>
<script>
abs.offsetTop;
abs.className = "auto";
</script>