You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add self.stream.end() after clipping, otherwise the rectangle will be used during the drawing. The push/pop state is probably also useless. I’ll push the fix as soon as I find the time to add some related tests!
This problem is fixed and some tests have been added, but there are probably many problems left with markers and their wonderful list of available attributes. Don’t hesitate to report more issues if needed!
There is an issue where markers with a viewBox attribute are showing with a rectangular border in >v55
Browsers do not have this behaviour see https://codepen.io/michaellisitsa/pen/xxmBbye and couldn't find anything in the https://www.w3.org/TR/SVG/painting.html#RenderingMarkers
Investigation of bug
The bug only surfaced at v55.0 where a fix was made to the viewBox for markers 607f26f
A check occurs in
svg/__init__.py
file for the viewBox attribute on the marker node, and as a results a clip box is created onWeasyPrint/weasyprint/svg/__init__.py
Line 544 in 4dfe607
Further down, a check is done for the
clip_box
and a rectangle is drawn. I believe this shouldn't be the case.WeasyPrint/weasyprint/svg/__init__.py
Line 589 in 4dfe607
Reproducable example
The text was updated successfully, but these errors were encountered: