[wpt-sync] Sync PR 61080 - HTML: img width/height when not rendered are density-corrected
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 61080 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/61080
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
HTML: img width/height when not rendered are density-corrected
An available img that is not being rendered reports its density-corrected natural width and height (matching naturalWidth/naturalHeight), per the current specification; the width/height content attributes and rendered size do not apply.
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=4ad4166c4f9383e2b1ab4d1f8f19ab4c1c0b3dfe
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 3 tests and 29 subtests
Status Summary
Firefox
OK : 3
PASS: 228
FAIL: 73
Chrome
OK : 3
PASS: 248
FAIL: 53
Safari
OK : 3
PASS: 277
FAIL: 24
Links
Details
Firefox-only Failures
- /html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.html [wpt.fyi]
- SVG image, no natural dimensions (with srcset/2x):
FAIL - SVG image, no natural dimensions (with srcset/2x) (when not rendered):
FAIL - SVG image with width/height attrs, no natural dimensions (with srcset/2x):
FAIL - SVG image with width/height attrs, no natural dimensions (with srcset/2x) (when not rendered):
FAIL - SVG image with width attr, no natural dimensions (with srcset/2x):
FAIL - SVG image with width attr, no natural dimensions (with srcset/2x) (when not rendered):
FAIL - SVG image with height attr, no natural dimensions (with srcset/2x):
FAIL - SVG image with height attr, no natural dimensions (with srcset/2x) (when not rendered):
FAIL - SVG image, percengage natural dimensions (with srcset/2x):
FAIL - SVG image, percengage natural dimensions (with srcset/2x) (when not rendered):
FAIL - SVG image, negative percengage natural dimensions (with srcset/2x):
FAIL - SVG image, negative percengage natural dimensions (with srcset/2x) (when not rendered):
FAIL - SVG image, with natural width (with srcset/2x):
FAIL - SVG image, with natural height (with srcset/2x):
FAIL - SVG image, with natural width of 0 (with srcset/2x):
FAIL - SVG image, with natural width of 0 (with srcset/2x) (when not rendered):
FAIL - SVG image, with natural height of 0 (with srcset/2x):
FAIL - SVG image, with natural height of 0 (with srcset/2x) (when not rendered):
FAIL - SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL - SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL - SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL - SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL - SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL - SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL - SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x):
FAIL - SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x) (when not rendered):
FAIL - SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x):
FAIL - SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x) (when not rendered):
FAIL - SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x):
FAIL - SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x) (when not rendered):
FAIL - SVG image, with natural width, viewBox with 0 width/height (with srcset/2x):
FAIL - SVG image, with natural width, viewBox with 0 width (with srcset/2x):
FAIL - SVG image, with natural width, viewBox with 0 height (with srcset/2x):
FAIL - SVG image, with natural height, viewBox with 0 width/height (with srcset/2x):
FAIL - SVG image, with natural height, viewBox with 0 width (with srcset/2x):
FAIL - SVG image, with natural height, viewBox with 0 height (with srcset/2x):
FAIL - SVG image, with natural width matching default concrete object size (with srcset/2x):
FAIL - SVG image, with natural height matching default concrete object size (with srcset/2x):
FAIL
- SVG image, no natural dimensions (with srcset/2x):
- /html/semantics/embedded-content/the-img-element/width-height-attribute-parsing.html [wpt.fyi]
- width and height attribute value "+10":
FAIL - width and height attribute value "50%":
FAIL - width and height attribute value "1.9":
FAIL
- width and height attribute value "+10":
- /html/semantics/forms/the-input-element/image-width-height.html [wpt.fyi]
- width and height attribute value "+10" when not rendered:
FAIL - width and height attribute value "50%" when not rendered:
FAIL - width and height attribute value "1.9" when not rendered:
FAIL
- width and height attribute value "+10" when not rendered:
New Tests That Don't Pass
- /html/semantics/embedded-content/the-img-element/naturalWidth-naturalHeight-width-height.html [wpt.fyi]
- raster image (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, no natural dimensions (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image with width/height attrs, no natural dimensions (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image with width/height attrs, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image with width attr, no natural dimensions (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image with width attr, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image with height attr, no natural dimensions (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image with height attr, no natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, percengage natural dimensions (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, percengage natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, negative percengage natural dimensions (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, negative percengage natural dimensions (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, with natural width (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - SVG image, with natural width of 0 (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, with natural height of 0 (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, with natural height of 0 (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, with natural width being negative (with srcset/2x):
FAIL(Chrome:FAIL, Safari:PASS) - 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:PASS) - 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:PASS, Safari:PASS) - SVG image, no natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, negative percengage natural dimensions, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, with natural width, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height, 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:PASS) - SVG image, with natural width being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, with natural height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 width/height (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 width (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, no natural dimensions, viewBox with 0 height (with srcset/2x) (when not rendered):
FAIL(Chrome:PASS, Safari:PASS) - SVG image, with natural width, viewBox with 0 width/height (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - 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 (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width and height, and aspect ratio from viewBox (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:PASS) - SVG image, with natural width and height being negative, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:PASS) - SVG image, with natural width matching default concrete object size (with srcset/2x):
FAIL(Chrome:PASS, Safari:PASS) - 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:PASS, Safari:PASS) - SVG image, with natural height matching default concrete object size (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width matching default concrete object size, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural height matching default concrete object size, and aspect ratio from viewBox (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL) - SVG image, with natural width and height matching default concrete object size (with srcset/2x) (when not rendered):
FAIL(Chrome:FAIL, Safari:FAIL)
- raster image (with srcset/2x) (when not rendered):
- /html/semantics/embedded-content/the-img-element/width-height-attribute-parsing.html [wpt.fyi]
- width and height attribute value "+10":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "50%":
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "1.9":
FAIL(Chrome:PASS, Safari:PASS) - unparseable width attribute falls back to the density-corrected natural width:
FAIL(Chrome:FAIL, Safari:FAIL)
- width and height attribute value "+10":
- /html/semantics/forms/the-input-element/image-width-height.html [wpt.fyi]
- width and height attribute value "+10" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "50%" when not rendered:
FAIL(Chrome:PASS, Safari:PASS) - width and height attribute value "1.9" when not rendered:
FAIL(Chrome:PASS, Safari:PASS)
- width and height attribute value "+10" when not rendered:
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/499e10c9bcea
https://hg.mozilla.org/mozilla-central/rev/0dbe6e529a88
Description
•