mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Previously we would incorrectly map these in `CSSStyleProperties::convert_declarations_to_specified_order`, aside from being too early (as it meant we didn't maintain them as distinct from their physical counterparts in CSSStyleProperties), this meant that we didn't yet have the required context to map them correctly. We now map them as part of the cascade process. To compute the mapping context we do a cascade without mapping, and extract the relevant properties (writing-direction and direction).
19 lines
783 B
HTML
19 lines
783 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8" />
|
|
<title>CSS Logical Properties: Flow-Relative Offsets</title>
|
|
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com" />
|
|
<link rel="help" href="https://drafts.csswg.org/css-logical/#inset-properties">
|
|
<meta name="assert" content="This test checks the interaction of the flow-relative inset-* properties with the physical ones in different writing modes." />
|
|
<script src="../../resources/testharness.js"></script>
|
|
<script src="../../resources/testharnessreport.js"></script>
|
|
|
|
<div id="log"></div>
|
|
|
|
<script type="module">
|
|
import {runTests, createBoxPropertyGroup} from "./resources/test-box-properties.js";
|
|
runTests(createBoxPropertyGroup("inset-*", {
|
|
type: "length",
|
|
prerequisites: {"position": "relative"},
|
|
}));
|
|
</script>
|