mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:27:35 +00:00
LibWeb: Fix parsing bug for SVG attributes
This doesn't seem to actually have fixed any bugs, as having FillOpacity instead of StrokeOpacity in the call to parse_css_value doesn't seem to have actually been causing bugs. But, I still think it's worthwhile correcting. The reason that it wasn't causing bugs is that having FillOpacity instead of StrokeOpacity in the call to parse_css_value means that when parsing the value is compared to the acceptable values for that property (for example the value can only be a percentage, or a number, etc.). In this case both FillOpacity and StrokeOpacity seem to accept the same values.
This commit is contained in:
parent
f2047a5c32
commit
70919dbed7
3 changed files with 30 additions and 3 deletions
|
@ -0,0 +1,16 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x800 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x784 children: inline
|
||||
line 0 width: 784, height: 784, bottom: 784, baseline: 784
|
||||
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 784x784]
|
||||
SVGSVGBox <svg> at (8,8) content-size 784x784 [SVG] children: inline
|
||||
TextNode <#text>
|
||||
SVGGeometryBox <circle> at (47.203125,47.203125) content-size 548.796875x548.796875 children: not-inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x800]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x800]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x784]
|
||||
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 784x784]
|
||||
SVGGeometryPaintable (SVGGeometryBox<circle>) [47.203125,47.203125 548.796875x548.796875]
|
Loading…
Add table
Add a link
Reference in a new issue