Files
sousa-gecko/testing/web-platform/tests/css/css-transforms/rotate-3d-parameters-noramlized.html
T
Martin Robinson 5063d68924 Bug 2047356 [wpt PR 60603] - layout: Normalize the input to euclid's rotation function when creating reference frames, a=testonly
Automatic update from web-platform-tests
layout: Normalize the input to euclid's rotation function when creating reference frames

The rotation values we get from Stylo are unnormalized, yet euclid
expects them to be[^1]. This change enusures that before we give the
rotation values to euclid we normalize them. Lucikly, Stylo already has
normalization functionality available so we can reuse it.

[^1]:  https://github.com/servo/euclid/blob/main/src/rotation.rs#L276

Signed-off-by: Martin Robinson <mrobinson@abandonedwig.info>

--

wpt-commits: e8c6cbf0751cd0f5d8a397d4285f72d62fe51a70
wpt-pr: 60603
2026-06-16 11:37:08 +00:00

22 lines
690 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Transforms: User agents should properly normalize parameters to 3D `rotate`</title>
<link rel="help" href="https://drafts.csswg.org/css-transforms-2/#interpolation-of-transform-functions">
<link rel="author" title="Martin Robinson" href="mrobinson@igalia.com" />
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
<style type="text/css">
.rotated {
background-color: green;
rotate: 2 0 0 180deg;
height: 100px;
width: 100px;
}
</style>
</head>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="rotated"></div>
</body>
</html>