serenity
serenity copied to clipboard
LibWeb: SVG <circle> does not support percentage `cx` attributes
Reduction:
<!DOCTYPE html><svg height="350" width="100%"><circle
cx="50%"
cy="170"
r="150"
fill="black"
></circle></svg>
The problem is that we parse cx attribute, assuming it always has to be a number.
It's more than just not parsing it, there's no context to resolve the value in how SVG's currently resolve paths. I have some WIP stuff converting these to use CSS properties, and resolving the values during layout.