Closed Bug 1791377 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 35946 - Update SVG transform rotate(45) tests to avoid box border

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
107 Branch
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.

Component: web-platform-tests → Web Painting
Product: Testing → Core
Severity: -- → N/A
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
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.