Closed Bug 1513989 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 14504 - Return used width/height for SVG <image>, <rect> and <foreignObject>

Categories

(Core :: SVG, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Fredrik Söderquist <fs@opera.com> wrote:
>  Return used width/height for SVG <image>, <rect> and <foreignObject>
>  
>  Per https://drafts.csswg.org/cssom/#resolved-values we should return the
>  "used value" for 'width' and 'height' on these elements [1].
>  This behavior was clarified in SVGWG GitHub issue #349 [2].
>  
>  [1] And also on \<svg>, but we don't support those properties there yet.
>      Tests added for that case too though.
>  [2] https://github.com/w3c/svgwg/issues/349
>  
>  Bug: 772707
>  Change-Id: Ic7b6b148883d4380daadb41b62bddd02da55e1af
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1374291
>  WPT-Export-Revision: f9f1aff16060e44c182c071c731607c551d1cef5
Component: web-platform-tests → SVG
Product: Testing → Core
Ran 3 tests and 72 subtests
OK     : 3
PASS   : 36
FAIL   : 36

New tests that have failures or other problems:
/svg/extensibility/foreignObject/properties.svg
    width and height default to auto (which computes to "0px"): FAIL
/svg/geometry/parsing/height-computed.svg
    SVG Geometry Properties: getComputedStyle().height, <foreignObject> initial: FAIL
    SVG Geometry Properties: getComputedStyle().height, <foreignObject> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().height, <foreignObject> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().height, <foreignObject> presentation attribute: FAIL
    SVG Geometry Properties: getComputedStyle().height, <image> initial: FAIL
    SVG Geometry Properties: getComputedStyle().height, <image> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().height, <image> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().height, <image> presentation attribute: FAIL
    SVG Geometry Properties: getComputedStyle().height, <rect> initial: FAIL
    SVG Geometry Properties: getComputedStyle().height, <rect> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().height, <rect> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().height, <rect> presentation attribute: FAIL
    SVG Geometry Properties: getComputedStyle().height, <svg> initial: FAIL
    SVG Geometry Properties: getComputedStyle().height, <svg> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().height, <svg> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().height, <svg> presentation attribute: FAIL
/svg/geometry/parsing/width-computed.svg
    SVG Geometry Properties: getComputedStyle().width, <foreignObject> initial: FAIL
    SVG Geometry Properties: getComputedStyle().width, <foreignObject> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().width, <foreignObject> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().width, <foreignObject> presentation attribute: FAIL
    SVG Geometry Properties: getComputedStyle().width, <image> initial: FAIL
    SVG Geometry Properties: getComputedStyle().width, <image> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().width, <image> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().width, <image> presentation attribute: FAIL
    SVG Geometry Properties: getComputedStyle().width, <rect> initial: FAIL
    SVG Geometry Properties: getComputedStyle().width, <rect> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().width, <rect> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().width, <rect> presentation attribute: FAIL
    SVG Geometry Properties: getComputedStyle().width, <svg> initial: FAIL
    SVG Geometry Properties: getComputedStyle().width, <svg> inline style (auto): FAIL
    SVG Geometry Properties: getComputedStyle().width, <svg> inline style (percentage): FAIL
    SVG Geometry Properties: getComputedStyle().width, <svg> presentation attribute: FAIL
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/f3338f6cf969
[wpt PR 14504] - Return used width/height for SVG <image>, <rect> and <foreignObject>, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/c313f303498a
[wpt PR 14504] - Update wpt metadata, a=testonly
You need to log in before you can comment on or make changes to this bug.