mdn / mdn/browser-compat-data

CSS <color> - missing compatibility data for floats in hsl() notation

Open
#11,693 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:multiple data:css
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What information was incorrect, unhelpful, or incomplete?

BCD does not currently contain an entry on the browser support for float numbers in the hsl() / hsla() color notation, as it has for rgb() / rgba(). My current need is defining the hsl() serialization in a color manipulation library, where I'd make an informed decision whether to round saturation and lightness to the nearest integer.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsl()

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked MDN hsl() page and compare the existing BCD entries for rgb() and rgba() compatibility. Identify the appropriate hsl()/hsla() data location, add browser support information for float saturation and lightness values, and verify that the compatibility data matches the documented behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.