Skip to content

Conversation

swhitty
Copy link
Owner

@swhitty swhitty commented Aug 5, 2025

Some Images include invalidrgb() values specifying an alpha components (4th element)

rgb(1, 2, 3, 10)

From what I can gather this is invalid and rgba(...) should be used when 4 components are specified.

Nonetheless, browsers do parse and accept this and images from effigy.im #85 include these 4 components.

This PR relaxes the strictness of the color parsing within rgb() to allow these images to be displayed correctly.

@swhitty swhitty merged commit ea86ece into main Aug 5, 2025
20 checks passed
@swhitty swhitty deleted the reduce-strictness-parseColor branch August 5, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant