mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Previously, we only supported very basic numbers and a single level of
text positioning support in the `x`, `y`, `dx` and `dy` attributes in
`<text>` and `<tspan>` SVG elements.
This improves our support for them in the following ways:
* Any `length-percentage` or `number` type value is accepted;
* Nested `<text>` and `<tspan>` use the 'current text position'
concept to determine where the next text run should go;
* We expose the attributes' values through the API.
Though we still do not support:
* Applying the `rotate` attribute;
* Applying transformations on a per-character basis.
* Proper horizontal and vertical glyph advancing (we just use the path
bounding box for now).
35 lines
2.1 KiB
Plaintext
35 lines
2.1 KiB
Plaintext
Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
|
|
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 136 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 120 0+0+8] children: inline
|
|
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 300x120] baseline: 120
|
|
SVGSVGBox <svg> at [8,8] [0+0+0 300 0+0+0] [0+0+0 120 0+0+0] [SVG] children: inline
|
|
TextNode <#text> (not painted)
|
|
SVGGeometryBox <rect> at [8,8] [0+0+0 300 0+0+0] [0+0+0 120 0+0+0] children: not-inline
|
|
TextNode <#text> (not painted)
|
|
SVGTextBox <text> at [8,8] [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
SVGTextBox <tspan> at [48.796875,23.140625] [0+0+0 44.46875 0+0+0] [0+0+0 22.125 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
SVGTextBox <tspan> at [114.390625,48.9375] [0+0+0 45.765625 0+0+0] [0+0+0 20.53125 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
SVGTextBox <tspan> at [191.28125,84.15625] [0+0+0 45.09375 0+0+0] [0+0+0 20.53125 0+0+0] children: inline
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
TextNode <#text> (not painted)
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x136]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x120]
|
|
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 300x120]
|
|
SVGPathPaintable (SVGGeometryBox<rect>) [8,8 300x120]
|
|
SVGPathPaintable (SVGTextBox<text>) [8,8 0x0]
|
|
SVGPathPaintable (SVGTextBox<tspan>) [48.796875,23.140625 44.46875x22.125]
|
|
SVGPathPaintable (SVGTextBox<tspan>) [114.390625,48.9375 45.765625x20.53125]
|
|
SVGPathPaintable (SVGTextBox<tspan>) [191.28125,84.15625 45.09375x20.53125]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x136] [children: 0] (z-index: auto)
|