[wpt-sync] Sync PR 35946 - Update SVG transform rotate(45) tests to avoid box border
Categories
(Core :: Web Painting, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox107 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 35946 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/35946
Details from upstream follow.
Philip Jägenstedt <philip@foolip.org> wrote:
Update SVG transform rotate(45) tests to avoid box border
These tests had one (transformed) coordinate right on the edge of the
SVG box. Tweak the triangle so that it ends up well inside of the box.The new coordinates for the path were computed using code like this:
var rot = new DOMMatrix().rotateSelf(45); rot.transformPoint({x:100, y:-50});
That gives coordinates (106.06601717798213, 35.35533905932736), and they
were inset to give >1px margin, which was the case before as well. It's
still close enough that a rotation of 44 or 46 degrees would fail the
test.Fixes https://github.com/web-platform-tests/wpt/issues/35945.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=71422695b06fb309e86f9430e9c8a037f390d416
Updated•2 years ago
|
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0967d680a1b3 [wpt PR 35946] - Update SVG transform rotate(45) tests to avoid box border, a=testonly
Comment 3•2 years ago
|
||
bugherder |
Description
•