[wpt-sync] Sync PR 59304 - HTML: correct naturalWidth and naturalHeight for SVG
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 59304 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/59304
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
HTML: correct naturalWidth and naturalHeight for SVG
The change from the tentative version is that image density does not impact the 300 x 150 fallback so when intrinsic dimensions are missing we use the same values in the API and rendering.
This complements https://github.com/whatwg/html/pull/12382.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=31a189579943f73c097de5c6b6e9bf8be1836afe
| Assignee | ||
Comment 2•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=2dde5fee0078c35010f8d7e3532c7feaddcf0840
| Assignee | ||
Comment 3•1 month ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 258 subtests
Status Summary
Firefox
OK : 1
PASS: 200
FAIL: 58
Chrome
OK : 1
PASS: 180
FAIL: 78
Safari
OK : 1
PASS: 128
FAIL: 130
Links
Details
New Tests That Don't Pass
- /html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.html [wpt.fyi]
- SVG image, no natural dimensions (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image with width/height attrs, no natural dimensions (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image with width/height attrs, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image with width attr, no natural dimensions (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image with width attr, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image with height attr, no natural dimensions (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image with height attr, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, percengage natural dimensions (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, percengage natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, negative percengage natural dimensions (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, negative percengage natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, with natural width (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width of 0 (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width of 0 (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height of 0 (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height of 0 (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width being negative (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width being negative (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, with natural height being negative (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height being negative (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, with natural width, viewBox with 0 width/height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width, viewBox with 0 width/height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width, viewBox with 0 width (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width, viewBox with 0 width (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width, viewBox with 0 height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width, viewBox with 0 height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, viewBox with 0 width/height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, viewBox with 0 width/height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, viewBox with 0 width (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, viewBox with 0 width (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, viewBox with 0 height (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, viewBox with 0 height (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width matching default concrete object size (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width matching default concrete object size (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height matching default concrete object size (with srcset/2x):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height matching default concrete object size (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL)
- SVG image, no natural dimensions (with srcset/2x):
https://hg.mozilla.org/mozilla-central/rev/120e84a1b67c
https://hg.mozilla.org/mozilla-central/rev/e1d0bc5fe87d
Description
•