Skip to content

feat: added the syntax for alpha() function - #1092

Open
dletorey wants to merge 2 commits into
mdn:mainfrom
dletorey:45191-alpha-required
Open

feat: added the syntax for alpha() function#1092
dletorey wants to merge 2 commits into
mdn:mainfrom
dletorey:45191-alpha-required

Conversation

@dletorey

@dletorey dletorey commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Description

  • Added the syntax for alpha() function

Motivation

Related issues and pull requests

@dletorey
dletorey requested review from a team as code owners August 19, 2026 15:31
@dletorey
dletorey requested a review from pepelsbey August 19, 2026 15:31
@dletorey dletorey changed the title added the syntax for alpha() function feat: added the syntax for alpha() function Aug 19, 2026
@dletorey

Copy link
Copy Markdown
Contributor Author

updated due to this conversation

@yisibl

yisibl commented Aug 20, 2026

Copy link
Copy Markdown

Please note that since the alpha value was optional in the original specification, it was also optional when Chrome 152 was first released.

https://chromestatus.com/feature/5070160203481088

@dletorey

Copy link
Copy Markdown
Contributor Author

Please note that since the alpha value was optional in the original specification, it was also optional when Chrome 152 was first released.

https://chromestatus.com/feature/5070160203481088

@yisibl my testing in this suggests that Chrome and Safari have made this required

@yisibl

yisibl commented Aug 21, 2026

Copy link
Copy Markdown

Take a look at the test below: in Chrome 152, the background is green, while in Firefox, the syntax is invalid.

data:text/html;charset=UTF-8,<!doctype html> 
<style>
  body {
    background: alpha(from green);
  }
</style>

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.

3 participants