Closed Bug 1485742 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 12649 - Add intrinsicsize attribute to HTMLImageElement behind a flag

Categories

(Core :: DOM: Core & HTML, enhancement, P4)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox64 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Luna Lu <loonybear@chromium.org> wrote:
>  Add intrinsicsize attribute to HTMLImageElement behind a flag
>  
>  This CL implements "intrinsicsize" attribute for HTMLImageElement.
>  The value of "intrinsicsize" overrides the intrinsic size:
>  
>  1. When no width and (or) height is specified, the value of
>  "intrinsicsize" will be used to determine the area to layout the image
>  content.
>  
>  2. natualWidth and naturalHeight will return the density corrected
>  value of "intrinsicsize".
>  
>  3. To interact with feature policy unsized-media, when unsized-media
>  is disabled, an HTMLImageElement's default intrinsic size will be set
>  to "300 x 150" unless otherwise specified.
>  
>  See explainer: https://github.com/ojanvafai/intrinsicsize-attribute/blob/master/README.md
>  
>  Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel
>  Change-Id: I519f01841ee3e761b22874dbecd74f7e6843e2a9
>  
>  Reviewed-on: https://chromium-review.googlesource.com/1150725
>  WPT-Export-Revision: 2fa904376fb7d9baefbb5d63e468ed2d54a58a78
Component: web-platform-tests → DOM
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Ran 1 tests and 3 subtests
OK     : 1
FAIL   : 3

New tests that have failures or other problems:
/feature-policy/experimental-features/intrinsicSize-without-unsized-media.tentative.https.sub.html
    Test image with src=/feature-policy/experimental-features/resources/image.jpg: FAIL
    Test image with src=/feature-policy/experimental-features/resources/image.png: FAIL
    Test image with src=/feature-policy/experimental-features/resources/image.svg: FAIL
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/88293ea5cbb8
[wpt PR 12649] - Add intrinsicsize attribute to HTMLImageElement behind a flag, a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/e692e6f49f9b
[wpt PR 12649] - Update wpt metadata, a=testonly
https://hg.mozilla.org/mozilla-central/rev/88293ea5cbb8
https://hg.mozilla.org/mozilla-central/rev/e692e6f49f9b
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.