mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Implement "The percentage height calculation quirk" in BFC
See https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk Basically, it means that in quirks mode, percentage height needs to be resolved against nearest ancestor in the containing block chain that does not have height=auto. Fixes https://github.com/LadybirdBrowser/ladybird/issues/365
This commit is contained in:
committed by
Andreas Kling
parent
2e5edcf27e
commit
3a5e78780e
@@ -0,0 +1,9 @@
|
||||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x616 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x600 children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 784x600 children: not-inline
|
||||
|
||||
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x616]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x616]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x600]
|
||||
PaintableWithLines (BlockContainer<DIV>) [8,8 784x600]
|
||||
@@ -0,0 +1,6 @@
|
||||
<style>
|
||||
div {
|
||||
background-color: crimson;
|
||||
height: 100%;
|
||||
}
|
||||
</style><div></div>
|
||||
Reference in New Issue
Block a user