Skip to content

Support actual angles for HSL/HSLA colors#62

Merged
LaurenzV merged 1 commit into
linebender:mainfrom
simartin:hsl_angles
May 13, 2026
Merged

Support actual angles for HSL/HSLA colors#62
LaurenzV merged 1 commit into
linebender:mainfrom
simartin:hsl_angles

Conversation

@simartin
Copy link
Copy Markdown
Contributor

This makes hsl/hsla properly work with hue and alpha values with a deg/grad/rad/turn suffix, that should be supported according to
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/hsl

I noticed this gap while reviewing the SVG compliance test suite of servo (that relies on resvg, that uses svgtypes).

This makes hsl/hsla properly work with hue and alpha values with a
deg/grad/rad/turn suffix, that should be supported according to
  https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/color_value/hsl

I noticed this gap while reviewing the SVG compliance test suite of
servo (that relies on resvg, that uses svgtypes).

Signed-off-by: Simon Martin <simon@nasilyan.com>
@LaurenzV LaurenzV changed the title Support actual angles in hsl/hsla Support actual angles for HSL/HSLA colors May 13, 2026
@LaurenzV
Copy link
Copy Markdown
Collaborator

LGTM thanks!

@LaurenzV LaurenzV enabled auto-merge May 13, 2026 20:18
@LaurenzV LaurenzV added this pull request to the merge queue May 13, 2026
Merged via the queue into linebender:main with commit 3ee4db5 May 13, 2026
15 checks passed
@simartin simartin deleted the hsl_angles branch May 14, 2026 07:02
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.

2 participants