Closed Bug 1804289 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 37356 - Only synthesize a 'viewBox' in <img> for the document element <svg>

Categories

(Core :: SVG, task, P4)

task

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 37356 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/37356
Details from upstream follow.

Fredrik Söderquist <fs@opera.com> wrote:

Only synthesize a 'viewBox' in <img> for the document element <svg>

SVGSVGElement::ShouldSynthesizeViewBox() needs to check that it is the
document element as well.

Use the IsDocumentElement() helper from Element, and replace another
instance of the same check as well.

Fixed: 1313530
Change-Id: I785a8ce83780cc2a4c9d697065453f69bc3d69e4

Reviewed-on: https://chromium-review.googlesource.com/4079162
WPT-Export-Revision: 9973e1da0cdd3211d2a15887714b82e4e395c369

Component: web-platform-tests → SVG
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d5bb1d156e88 [wpt PR 37356] - Only synthesize a 'viewBox' in <img> for the document element <svg>, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
You need to log in before you can comment on or make changes to this bug.