Modernize CSS: consistently use rgb/hsl instead of rgba/hsla by Josh-Cena · Pull Request #40179 · mdn/content · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Modernize CSS: consistently use rgb/hsl instead of rgba/hsla #40179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

Josh-Cena
Copy link
Member

Our own user-facing documentation says:

Note: The rgba() functional notation is an alias for rgb(). They are exactly equivalent. It is recommended to use rgb().

For reasons of consistency and terseness, we should fix the remaining few cases of rgba/hsla.

@Josh-Cena Josh-Cena requested a review from a team as a code owner July 3, 2025 05:04
@Josh-Cena Josh-Cena requested review from estelle and removed request for a team July 3, 2025 05:04
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed labels Jul 3, 2025
Copy link
Contributor

github-actions bot commented Jul 3, 2025

Preview URLs

Flaws (6)

Note! 1 document with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/CSS/attr
Title: attr()
Flaw count: 4

  • broken_links:
    • Can't resolve /en-US/docs/Web/CSS/declaration-value
    • Can't resolve /en-US/docs/Web/CSS/ident-token
    • Can't resolve /en-US/docs/Web/CSS/ident-token
    • Can't resolve /en-US/docs/Web/CSS/attr-unit

URL: /en-US/docs/Web/CSS/CSS_masking/Masking
Title: Introduction to CSS masking
Flaw count: 2

  • broken_links:
    • Can't resolve /en-US/docs/Web/CSS/CSS_masking/CSS_mask_properties
  • macros:
    • Macro produces link /en-US/docs/Web/CSS/conic-gradient which is a redirect

@Josh-Cena Josh-Cena requested a review from bsmth July 3, 2025 06:08
Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍🏻

@Josh-Cena Josh-Cena merged commit f50b3b0 into mdn:main Jul 3, 2025
7 checks passed
@Josh-Cena Josh-Cena deleted the color-func-alias branch July 3, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.