Closed Bug 1613963 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 21667 - foreignObject default size is 0, we must set it

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync upstream error])

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

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

Mike <mike@qtunes.org> wrote:

foreignObject default size is 0, we must set it

SVG foreignObject has a default width/height of zero. If we want them to contain a 200x200 object, we have to set width/height explicitly.

Quote from https://svgwg.org/svg2-draft/geometry.html#Sizing

This means that, for example, a ‘foreignObject’ object element will not shrink-wrap to its contents if auto is used.

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Failed to create upstream wpt PR due to merge conflicts. This requires fixup from a wpt sync admin.
Whiteboard: [wptsync downstream error] → [wptsync upstream error]
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/625499ba0ff2
Allow blending for svg root etc, a=testonly
https://hg.mozilla.org/integration/autoland/rev/f47f55dac0ed
[wpt PR 21667] - foreignObject default size is 0, we must set it, a=testonly
Pushed by malexandru@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dfbb56678a0a
Update expectations for blending-svg-foreign-object.html and blending-svg-root.html a=wpt-fix
Flags: needinfo?(james)
Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.