1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

LibWeb: Support size attribute on font elements

This commit is contained in:
implicitfield 2023-11-19 15:34:55 +04:00 committed by Andreas Kling
parent 5df52a5082
commit 468b2a5ace
3 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x33.46875 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x17.46875 children: inline
line 0 width: 24.109375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
frag 0 from TextNode start: 0, length: 4, rect: [8,11 24.109375x13.09375]
"text"
InlineNode <font>
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x33.46875]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x17.46875]
InlinePaintable (InlineNode<FONT>)
TextPaintable (TextNode<#text>)

View file

@ -0,0 +1 @@
<!doctype html><font size="-2">text