WICG / intrinsicsize-attribute

Proposal to add an intrinsicsize attribute to media elements
Apache License 2.0
93 stars 14 forks source link

Should we allow "intrinsicsize" to be updated/removed? #5

Open loonybear opened 6 years ago

loonybear commented 6 years ago

Updating/removing "intrinsicsize" may potentially cause an image to resize.

I think the answer should be yes, since other attributes like "width" "height" can all be added/removed/updated and changing those attributes also cause an image to resize.

People may argue this way may allow developers to work around "unsized-media" policy. But we will be changing the behaviour of "unsized-media": when disabled, set default intrinsicsize to be "300 x 150", this way, even removing intrinsicsize attribute will not reset the image to its content size.

WDYT?

eeeps commented 6 years ago

Strongly in favor of allowing it to be updated/removed, just as you can update/remove width, height, sizes, src &etc.