Files
ladybird/Tests/LibWeb/Text/input/wpt-import/css/cssom/getComputedStyle-insets-relative.html
Tim Ledbetter 01d1a9528b LibWeb: Calculate the correct resolved value for inset properties
This improves the output of `getComputedStyle()` for the `top`,
`bottom`, `left` and `right` properties, where the used value is now
returned rather than the computed value, where applicable."
2025-03-18 09:27:51 +00:00

20 lines
782 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSSOM: resolved values of the inset properties for relative positioning</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#resolved-value">
<link rel="help" href="https://drafts.csswg.org/css-position/#pos-sch">
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<script src=../../resources/testharness.js></script>
<script src=../../resources/testharnessreport.js></script>
<script type="module">
import {runTests, containerForInflow} from "./support/getComputedStyle-insets.js";
runTests({
style: "position: relative",
containingBlockElement: containerForInflow,
containingBlockArea: "content",
preservesPercentages: false,
preservesAuto: false,
canStretchAutoSize: false,
});
</script>