Files
sousa-gecko/testing/web-platform/tests/css/css-position/position-static-001.html
T
Oriol Brufau d28ed625b9 Bug 1989630 [wpt PR 54954] - layout: Ignore insets in Taffy for static and sticky positionings, a=testonly
Automatic update from web-platform-tests
layout: Ignore insets in Taffy for static and sticky positionings

Taffy treats static and sticky positionings as relative. So the inset
properties shifted the element in the relpos way, which was no good.
It's better to just treat them as `auto` instead.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: 7142772429001e07c1bb2cbd780b6315085e5fae
wpt-pr: 54954
2025-09-24 11:06:12 +00:00

28 lines
722 B
HTML

<!DOCTYPE html>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-position/#insets">
<link rel="help" href="https://github.com/servo/servo/issues/39399">
<link rel="match" href="../reference/ref-filled-green-200px-square.html">
<meta name="assert" content="Inset propeties do not apply to a statically positioned grid item.">
<style>
#grid {
display: grid;
width: 200px;
height: 200px;
background: red;
}
#item {
width: 200px;
height: 200px;
top: 200px;
left: 200px;
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="grid">
<div id="item"></div>
</div>