Matthieu, https://wpt.fyi/results/css/css-color/parsing/color-valid-lab.html http://wpt.live/css/css-color/parsing/color-valid-lab.html The tests pass in Firefox and Chrome. Set div.style["color"] = "rgb(calc(NaN) 30 30)" Then div.style.getPropertyValue('color') Returns (as it should) "rgb(0, 30, 30)" It has clamped the value to 0, while it should have returned: "rgb(calc(NaN), 30, 30)" The same is happening for div.style["color"] = "rgb(calc(0 / 0) 30 30)" where it should return "rgb(calc(NaN), 30, 30)" See the rationales in https://github.com/w3c/csswg-drafts/issues/8629 This should fix some tests here and there
<rdar://problem/125333997>
s,rgb(,lab(, in my first comment.