SVG files served over HTTP (image/svg+xml) or detected by byte sniffing are now rasterized to RGBA8 pixels at decode time using resvg/usvg, producing the same DecodedImage that raster formats produce. Everything downstream (layout, display list, rasterizer) works unchanged. Includes dimension limits (8192px max, 64M pixels) to prevent SVG bomb attacks, content-type validation against actual bytes, and NaN/Infinity guards on SVG dimensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
LayoutBox node=#2 tag=html box=block
|
|
content: (0, 0, 800, 35.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
LayoutBox node=#8 tag=body box=block
|
|
content: (8, 8, 784, 19.2)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 8 8 8 8
|
|
inline_context: 1 lines, height=19.2, max_width=13.054333
|
|
line[0]: rect=(8, 8, 13.054333, 19.2) fragments=1
|
|
frag[0]: rect=(8, 10.558002, 10, 10) text=(none) start=false end=false
|
|
LayoutBox node=#9 tag=anonymous box=anon
|
|
content: (0, 0, 3.0543318, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: " "
|
|
LayoutBox node=#10 tag=img box=inline-block
|
|
content: (8, 10.558002, 10, 10)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
image: img#0 (intrinsic: 10x10)
|
|
inline_context: 0 lines, height=0, max_width=0
|
|
LayoutBox node=#11 tag=anonymous box=anon
|
|
content: (0, 0, 3.0543318, 16)
|
|
padding: 0 0 0 0
|
|
border: 0 0 0 0
|
|
margin: 0 0 0 0
|
|
text: " "
|