SVG transform-origin ignored #2256
Labels
feature
New feature that should be supported
good first issue
Issues that can be quite easily solved by Python developers with a good CSS background
The attribute "transform-origin" sets the reference point used in transformations set by the "transform" attribute. In the examples below, a rotation was used with the origin set to the center of the triangle. In WeasyPrint, the origin is ignored and the triangle is rotated relative to (0, 0). When the object is far from (0, 0), it can rotate far from it's intended location and far outside the viewport.
The following SVG reproduces the problem. The rotation is small in order to make the error more visible.
In Firefox, the triangle is rotated relative to the center of the triangle:
But WeasyPrint rotates it relative to (0, 0). It this example it looks slightly offset because the rotation is small.
Reference files:
svgtransformorigin-firefox.pdf
svgtransformorigin.pdf
The text was updated successfully, but these errors were encountered: