LadybirdBrowser / ladybird

Truly independent web browser
https://ladybird.org
BSD 2-Clause "Simplified" License
19.23k stars 777 forks source link

Parse color data for calc(infinity) #781

Closed doctortheemh closed 2 weeks ago

doctortheemh commented 1 month ago

I have reason to believe we are not correctly parsing the Color data in CSS correctly for this case:

ctx.fillStyle = "rgb(0, calc(infinity), 0)";

This is relevant to the test below which is failing compared to Chrome or Firefox.

Tests/LibWeb/Ref/canvas-fillstyle-rgb.html
AtkinsSJ commented 1 month ago

IIRC we don't parse calc() at all in colour functions. We should probably have an issue about that, I keep forgetting about it.