serenity icon indicating copy to clipboard operation
serenity copied to clipboard

LibWeb: Support `x` and `y` attributes on nested SVGs

Open MacDue opened this issue 1 year ago • 0 comments

This allows positioning a child SVG relative to its parent SVG.

Note: These have been implemented as CSS properties as in SVG 2, these are geometry properties that can be used in CSS (see https://www.w3.org/TR/SVG/geometry.html), but there is not much browser support for this. It is nicer to implement than the ad-hoc SVG attribute parsing though, so I feel it may make sense to port the rest of the attributes specified here (which should fix some issues with viewport relative sizes).

This fixes the logo position on the Azure pipelines badge: image

MacDue avatar Jan 28 '24 17:01 MacDue