mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
LibWeb: Define if identifier represent area or line during layout [GFC]
This fixes regression introduced in
c03e025a32
by assuming that it is
possible to determine whether identifier stands for line or area
during parsing.
This commit is contained in:
parent
5d7e73adfe
commit
b66f65dc9e
10 changed files with 104 additions and 145 deletions
|
@ -1,23 +1,23 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x40.9375 children: not-inline
|
||||
Box <div.grid-container> at (11,11) content-size 778x38.9375 [GFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x21.46875 children: not-inline
|
||||
Box <div.grid-container> at (11,11) content-size 778x19.46875 [GFC] children: not-inline
|
||||
BlockContainer <div.a> at (12,12) content-size 387x17.46875 [BFC] children: inline
|
||||
line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,12 6.34375x17.46875]
|
||||
"1"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.b> at (12,31.46875) content-size 387x17.46875 [BFC] children: inline
|
||||
BlockContainer <div.b> at (401,12) content-size 387x17.46875 [BFC] children: inline
|
||||
line 0 width: 8.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,31.46875 8.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [401,12 8.8125x17.46875]
|
||||
"2"
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x602]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x42.9375]
|
||||
PaintableBox (Box<DIV>.grid-container) [10,10 780x40.9375]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x23.46875]
|
||||
PaintableBox (Box<DIV>.grid-container) [10,10 780x21.46875]
|
||||
PaintableWithLines (BlockContainer<DIV>.a) [11,11 389x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.b) [11,30.46875 389x19.46875]
|
||||
PaintableWithLines (BlockContainer<DIV>.b) [400,11 389x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
|
@ -2,24 +2,24 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <html> at (1,1) content-size 798x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x77 children: not-inline
|
||||
Box <div.grid-container> at (11,11) content-size 778x75 [GFC] children: not-inline
|
||||
BlockContainer <div.grid-item.a> at (12,12) content-size 257.328125x23 [BFC] children: inline
|
||||
BlockContainer <div.grid-item.a> at (12,12) content-size 257.328125x73 [BFC] children: inline
|
||||
line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,12 6.34375x17.46875]
|
||||
"1"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.grid-item.b> at (12,12) content-size 257.328125x23 [BFC] children: inline
|
||||
BlockContainer <div.grid-item.b> at (530.65625,12) content-size 257.328125x48 [BFC] children: inline
|
||||
line 0 width: 8.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,12 8.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [530.65625,12 8.8125x17.46875]
|
||||
"2"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.grid-item.c> at (12,12) content-size 257.328125x23 [BFC] children: inline
|
||||
BlockContainer <div.grid-item.c> at (271.328125,12) content-size 257.328125x23 [BFC] children: inline
|
||||
line 0 width: 9.09375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,12 9.09375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [271.328125,12 9.09375x17.46875]
|
||||
"3"
|
||||
TextNode <#text>
|
||||
BlockContainer <div.grid-item.d> at (12,12) content-size 257.328125x23 [BFC] children: inline
|
||||
BlockContainer <div.grid-item.d> at (271.328125,62) content-size 516.65625x23 [BFC] children: inline
|
||||
line 0 width: 7.75, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,12 7.75x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [271.328125,62 7.75x17.46875]
|
||||
"4"
|
||||
TextNode <#text>
|
||||
|
||||
|
@ -27,11 +27,11 @@ ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602]
|
|||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x602]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x79]
|
||||
PaintableBox (Box<DIV>.grid-container) [10,10 780x77]
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.a) [11,11 259.328125x25]
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.a) [11,11 259.328125x75]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.b) [11,11 259.328125x25]
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.b) [529.65625,11 259.328125x50]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.c) [11,11 259.328125x25]
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.c) [270.328125,11 259.328125x25]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.d) [11,11 259.328125x25]
|
||||
PaintableWithLines (BlockContainer<DIV>.grid-item.d) [270.328125,61 518.65625x25]
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
|
@ -1,37 +1,37 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (1,1) content-size 798x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (10,10) content-size 780x21.46875 children: not-inline
|
||||
Box <div.grid-container> at (11,11) content-size 778x19.46875 [GFC] children: not-inline
|
||||
BlockContainer <div.a> at (12,12) content-size 48x17.46875 [BFC] children: inline
|
||||
BlockContainer <body> at (10,10) content-size 780x40.9375 children: not-inline
|
||||
Box <div.grid-container> at (11,11) content-size 778x38.9375 [GFC] children: not-inline
|
||||
BlockContainer <div.a> at (62,12) content-size 98x17.46875 [BFC] children: inline
|
||||
line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,12 6.34375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [62,12 6.34375x17.46875]
|
||||
"1"
|
||||
TextNode <#text>
|
||||
BlockContainer <div> at (62,12) content-size 98x17.46875 [BFC] children: inline
|
||||
BlockContainer <div> at (162,12) content-size 48x17.46875 [BFC] children: inline
|
||||
line 0 width: 8.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [62,12 8.8125x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [162,12 8.8125x17.46875]
|
||||
"2"
|
||||
TextNode <#text>
|
||||
BlockContainer <div> at (162,12) content-size 48x17.46875 [BFC] children: inline
|
||||
BlockContainer <div> at (212,12) content-size 98x17.46875 [BFC] children: inline
|
||||
line 0 width: 9.09375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [162,12 9.09375x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [212,12 9.09375x17.46875]
|
||||
"3"
|
||||
TextNode <#text>
|
||||
BlockContainer <div> at (212,12) content-size 98x17.46875 [BFC] children: inline
|
||||
BlockContainer <div> at (12,31.46875) content-size 48x17.46875 [BFC] children: inline
|
||||
line 0 width: 7.75, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [212,12 7.75x17.46875]
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [12,31.46875 7.75x17.46875]
|
||||
"4"
|
||||
TextNode <#text>
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x602]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x602]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x23.46875]
|
||||
PaintableBox (Box<DIV>.grid-container) [10,10 780x21.46875]
|
||||
PaintableWithLines (BlockContainer<DIV>.a) [11,11 50x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>) [61,11 100x19.46875]
|
||||
PaintableWithLines (BlockContainer<BODY>) [9,9 782x42.9375]
|
||||
PaintableBox (Box<DIV>.grid-container) [10,10 780x40.9375]
|
||||
PaintableWithLines (BlockContainer<DIV>.a) [61,11 100x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>) [161,11 50x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>) [211,11 100x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<DIV>) [11,30.46875 50x19.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<style>
|
||||
/* FIXME: This test is not rendered correctly */
|
||||
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<style>
|
||||
/* FIXME: This test is not rendered correctly */
|
||||
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<style>
|
||||
/* FIXME: This test is not rendered correctly */
|
||||
|
||||
* {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue