Skip to content

Commit

Permalink
Mark relative rgb() as fully supported in Chrome and Safari
Browse files Browse the repository at this point in the history
`rgb(from red 50% 50% 50%)` was tested in Chrome 119 and Safari 16.5
(not 16.4, BrowserStack doesn't have it) and it works.

Notes are from mdn#21937.
  • Loading branch information
foolip committed Apr 29, 2024
1 parent 712e11a commit f2bea9a
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions css/types/color.json
Original file line number Diff line number Diff line change
Expand Up @@ -1291,16 +1291,9 @@
"web-features:relative-color"
],
"support": {
"chrome": [
{
"version_added": "122"
},
{
"version_added": "119",
"partial_implementation": true,
"notes": "Channel values incorrectly resolve to numbers between 0-1 rather than 0-255. As a result, channel value calculations require values to be specified as decimal percentage equivalents (e.g. 0.3 for 30%, which would be equivalent to a 76.5 <code>&lt;number&gt;</code> value)."
}
],
"chrome": {
"version_added": "119"
},
"chrome_android": "mirror",
"edge": "mirror",
"firefox": {
Expand All @@ -1314,9 +1307,7 @@
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "16.4",
"partial_implementation": true,
"notes": "Implementation based on older spec version. As a result, channel value calculations do not work correctly, requiring values to be specified as percentages with units (e.g. 30%, which would be equivalent to a 76.5 <code>&lt;number&gt;</code> value)."
"version_added": "16.4"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
Expand Down

0 comments on commit f2bea9a

Please sign in to comment.