mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
LibWeb: Fix drawing axis-aligned lines
Previously, these were clipped by the RecordingPainter, which used the path's bounding box (which in this case is zero width or height). The fix is to expand the bounding box by the stroke width. Fixes #22661 Note: This is unrelated to any recent LibGfx changes :^)
This commit is contained in:
parent
fc41c282ec
commit
00b24a55b1
4 changed files with 24 additions and 0 deletions
BIN
Tests/LibWeb/Ref/reference/images/svg-axis-aligned-lines-ref.png
Normal file
BIN
Tests/LibWeb/Ref/reference/images/svg-axis-aligned-lines-ref.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 196 B |
|
@ -0,0 +1,9 @@
|
|||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
background-color: white;
|
||||
}
|
||||
</style>
|
||||
<img src="./images/svg-axis-aligned-lines-ref.png">
|
Loading…
Add table
Add a link
Reference in a new issue