Closed Bug 1537553 Opened 5 months ago Closed 4 months ago

[wpt-sync] Sync PR 15933 - Preserve explicit dimensions on <use>'d <symbol>

Categories

(Core :: SVG, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: wptsync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

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

Preserve explicit dimensions on <use>'d <symbol>

Per [1], 'width' and/or 'height' on a \<use> override the corresponding
values on a referenced \<svg> or \<symbol>. If no 'width' or 'height' is
specified on the \<use>, the values set on the referenced elements are
retained.
Previously we would always set 'width' / 'height' on a referenced
\<symbol> to '100%' if the \<use> did not have any overriding values.
Change this to follow the specification and copy the values from the
original element as needed - much like what was previously done for
referenced \<svg> elements.

[1] https://svgwg.org/svg2-draft/struct.html#UseLayout

Bug: 806289
Change-Id: Iaf595ff88af2865a080f95ccc414e283828c195e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1530883
Reviewed-by: Stephen Chenney \<schenney@chromium.org>
Commit-Queue: Fredrik Söderquist \<fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#642150}

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Component: web-platform-tests → SVG
Product: Testing → Core
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Failed to get results from try push
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/faef1c29b413
[wpt PR 15933] - Preserve explicit dimensions on <use>'d <symbol>, a=testonly
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f3dcc8b12106
[wpt PR 15933] - Preserve explicit dimensions on <use>'d <symbol>, a=testonly
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.