mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
LibWeb: Size SVG G container according to children
The SVG G container should have the same size as its children. This fixes a bug when there was an opacity value on the G element, as in StackingContext it would try and get a bitmap of the element which would be empty due to it having no size.
This commit is contained in:
parent
258af0fb1b
commit
f2047a5c32
5 changed files with 71 additions and 7 deletions
6
Tests/LibWeb/Layout/input/svg/svg-g-with-opacity.html
Normal file
6
Tests/LibWeb/Layout/input/svg/svg-g-with-opacity.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
|
||||
<g fill="white" stroke="green" opacity="0.6">
|
||||
<circle cx="40" cy="40" r="25" />
|
||||
<circle cx="60" cy="60" r="25" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 205 B |
Loading…
Add table
Add a link
Reference in a new issue