Minor Changes
-
#5180
b77200f42
Thanks @tony-sull! - Removes thecontent-visibility: auto
styling added by the<Picture />
and<Image />
components.Why: The content-visibility style is rarely needed for an
<img>
and can actually break certain layouts.Migration: Do images in your layout actually depend on
content-visibility
? No problem! You can add these styles where needed in your own component styles. -
#5038
ed2dfdae5
Thanks @emmanuelchucks! - HTML attributes included on the<Picture />
component are now passed down to the underlying<img />
element.Why?
- when styling a
<picture>
theclass
andstyle
attributes belong on the<img>
itself <picture>
elements should not actually provide anyaria-
attributeswidth
andheight
can be added to the<img>
to help prevent layout shift
- when styling a