Revert forwarding user class to Picture's outer element #18030

Merged
renovate-bot opened 2:02pm on September 16, 2026 wanted to merge 12 Ξ” into withastro/astro main from
revert/18004-picture-class
Reviewing
21 fewer changed lines
(51% less) vs GitHub
This saves about 89.3 hours per year vs conventional diff tools
renovate-bot authored
of work during September 16
Diff Delta:
12
About 25 Diff Delta/hour
Classified as:  General

renovate-bot's Description of Work

Changes


  • Reverts the unreleased #18004, which forwarded the user class onto the outer <picture> element in the Picture component. The class now applies only to <img> again; to style the <picture> element, pass a class via pictureAttributes.

  • Restores the pre-merge behavior: only the scoped astro-* style class is merged into <picture>'s attributes.

Testing


  • Removes the two tests added

Docs


  • Not needed since there hasn't been a release.

Building updated commit group diff...
4 total changed files
(2 files ignored)
Loading changes...