Skip to content

[fill-stroke] [filter-effects] [css-color] percentage opacity #3342

@ewilligers

Description

@ewilligers

The opacity properties define their syntax using <alpha>.

In CSS Color 3, alpha only accepted number values.

In CSS Color 4, alpha accepts percentages in addition to numbers.

Blink/Edge/Firefox/Safari do not accept percentages for any of the opacity properties - test page.

Blink and Firefox do accept percentage alpha in rgba() color values.

Was the change to support percentages intended only for color functions, with opacity properties affected accidentally, or are browsers intending to support percentages in *-opacity?

Affected properties:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions