Skip to content

Add cover support to at2x() mixin - #1112

Merged
stephaniehobson merged 2 commits into
mozilla:mainfrom
janbrasna:add/at2x-cover
Jun 24, 2026
Merged

Add cover support to at2x() mixin#1112
stephaniehobson merged 2 commits into
mozilla:mainfrom
janbrasna:add/at2x-cover

Conversation

@janbrasna

Copy link
Copy Markdown
Contributor

Description

This special cases also the other keyword, missing in the logic, to avoid emitting invalid cover auto output.

Also updates the API doc strings to demonstrate single keyword use.

  • I have documented this change in the design system.
  • I have recorded this change in CHANGELOG.md.

Issue

Resolves #751

Testing

SASS Playground running some mixin variant args: https://t.ly/El0D4

@stephaniehobson stephaniehobson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stephaniehobson
stephaniehobson merged commit 6bcf867 into mozilla:main Jun 24, 2026
1 check passed
@janbrasna
janbrasna deleted the add/at2x-cover branch June 24, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

at2x mixin doesn't support single keyword values for background-size

2 participants