You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the methods you've described should restore the aspect ratio. None of them except the last one will restore the image to its attribute-specified size (but the last one, in theory, should have that effect).
For Cascade 5, we might want to make sure the HTML preshint level of the cascade is in a separate layer so that the single-layer revert being proposed in #5793 can unwind down but leave preshints untouched.
Right; since the aspect-ratio preshint isn't overridden in any of the cases presented here, and the remaining issue (explicitly reverting back to the width and height preshints) is covered by #5856, I'll close this issue as invalid.
Width and height attributes for images define the aspect ratio of that image since: whatwg/html#4952
There should be a way in CSS to revert back to this original behavior if some other components redefined the width/height of that image in CSS.
Here is an example: https://jsfiddle.net/g74a0me2/1/
The following redefines the width and height of the image, so the aspect ratio won't work as the attributes are overridden.
Then we want to restore the original aspect ratio functionality for a subset of elements, but there is no way. For example with any of the following:
Related Chromium issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1161102#c9
The text was updated successfully, but these errors were encountered: