serenity icon indicating copy to clipboard operation
serenity copied to clipboard

LibWeb: SVG <circle> does not support percentage `cx` attributes

Open kalenikaliaksandr opened this issue 1 year ago • 1 comments

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.

kalenikaliaksandr avatar Feb 08 '24 11:02 kalenikaliaksandr

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.

MacDue avatar Feb 08 '24 19:02 MacDue