mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibWeb: Stub out SVGMaskElement
Just enough that we stop creating layout nodes for mask elements, which was making some SVG content look very wrong. :^)
This commit is contained in:
parent
adf70b8a16
commit
9e22f01eba
10 changed files with 99 additions and 0 deletions
|
@ -0,0 +1,17 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x100 children: inline
|
||||
line 0 width: 100, height: 100, bottom: 100, baseline: 100
|
||||
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100]
|
||||
SVGSVGBox <svg> at (8,8) content-size 100x100 [SVG] children: inline
|
||||
TextNode <#text>
|
||||
SVGGeometryBox <rect> at (8,8) content-size 100x100 children: not-inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]
|
||||
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 100x100]
|
||||
SVGGeometryPaintable (SVGGeometryBox<rect>) [8,8 100x100]
|
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<svg width="100" height="100" viewBox="0 0 1 1" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="0" y="0" width="1" height="1" fill="green"/>
|
||||
<mask id="mask" x="0" y="0" width="1" height="1">
|
||||
<rect x="0" y="0" width="1" height="1" fill="red"/>
|
||||
</mask>
|
||||
</svg>
|
Loading…
Add table
Add a link
Reference in a new issue