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

Pull Request Overview

  • Opened on September 16, 2026
  • Status Merged
  • Commit count 2 with first commit September 16, 2026

Total Delta

12 Total Diff Delta

Open Days

Open 2 weekdays

Test Delta

10 Diff Delta in Test Files
Breakdown by Phase

How long has this pull request spent in each phase of its lifecycle?

Fraction of total time Business days Phase
 
0.0 days Authoring 1 commit before pull request opened for review
 
0.0 days Awaiting first review
 
2.0 days Merge to deploy (still awaiting deployment)

Total time for pull request 0.0 business days from first commit authored to merge
Still awaiting deployment

Author avatar

Revert forwarding user class to Picture's outer element

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.

Comments Threads Pending Resolution

ArmandPhilippot reviewed and approved this work on September 16, 2026
ArmandPhilippot left a comment

Thanks! πŸ™ŒπŸ½

Resolved Comment Threads

No resolved comments have been left on this PR.