css/css-values/
clamp-color-computed.html
Passes: all 15 assertions match; 1 more could not be judged
A parsing and computed-value check: each value the parser must accept or reject, and what it computes to.
| Why some could not be judged | Assertions |
|---|---|
| No assertion with written values to accept or reject | 1 |
Run it in the playgroundThe fileOn GitHubBrowsers’ results on wpt.fyi
Each assertion
Every row shows what the file expected and what the engine returned, whether they match or not.
| Assertion | Expected | Got | Verdict |
|---|---|---|---|
Property color value 'rgb(clamp(10, 20, 30) 0 0)' | rgb(20, 0, 0) | rgb(20, 0, 0) | Passes |
Property color value 'rgb(clamp(none, 30, 33) 0 0)' | rgb(30, 0, 0) | rgb(30, 0, 0) | Passes |
Property color value 'rgb(clamp(none, 33, 30) 0 0)' | rgb(30, 0, 0) | rgb(30, 0, 0) | Passes |
Property color value 'rgb(clamp(30, 33, none) 0 0)' | rgb(33, 0, 0) | rgb(33, 0, 0) | Passes |
Property color value 'rgb(clamp(33, 30, none) 0 0)' | rgb(33, 0, 0) | rgb(33, 0, 0) | Passes |
Property color value 'rgb(clamp(none, 30, none) 0 0)' | rgb(30, 0, 0) | rgb(30, 0, 0) | Passes |
Property color value 'rgb(from red clamp(r, 30, 300) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(30, 300, r) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(3, r, 300) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(3, r, r + 30) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(r - 30, r, 300) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(3, r, none) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(r, 30, none) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(none, r, 300) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Property color value 'rgb(from red clamp(none, r, r + 30) g b)' | color(srgb 1 0 0) | color(srgb 1 0 0) | Passes |
Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.