Skip to content

Added image form of light-dark() and examples, fixes #12513#13651

Merged
tabatkins merged 2 commits intomainfrom
color-or-image
Mar 15, 2026
Merged

Added image form of light-dark() and examples, fixes #12513#13651
tabatkins merged 2 commits intomainfrom
color-or-image

Conversation

@svgeesus
Copy link
Copy Markdown
Contributor

No description provided.

@tabatkins tabatkins merged commit ddb630b into main Mar 15, 2026
2 checks passed
ul.fancy {
list-style-image: light-dark(
url("icons/deep-maroon-ball.png"),
url("icons/pale-yellow-star.png")
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.

So light-dark(<url>, <gradient>) is valid too, right?

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.

[css-images-4] Add light-dark-image(), or generalize light-dark() for images too?

3 participants