dymokomi/luce-browser-engine
Source of release 0.6.0
0.6.0 / src / web / layout / tests_layout_geometry_cases.lucb
#==============================================================================================
#
# tests_layout_geometry_cases - laid-out layout trees (block layout geometry) pinned to the
# reference build
#
# DESCRIPTION:
# Generated (a test vector table) from the output of a local oracle that runs the
# reference Ladybird build's LibWeb on the same documents (luce-browser-tools,
# oracles/luce-browser-engine/layout_geometry: cases.txt, oracle.cpp, gen_luce_cases.py,
# build.sh). tests_layout_geometry runs each case through the port and compares the output.
#
#==============================================================================================
## One oracle case: the mode, the document, its author style sheet, and the reference build's output.
struct TestLayoutGeometryCase:
let mode: str
let html: str
let css: str
let expected: str
## Every oracle case, in cases.txt order (0 more, marked "!" in cases.txt, wait for other regions).
let test_layout_geometry_cases: TestLayoutGeometryCase[74] = [
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"box\"><div class=\"inner\"></div></div>", css = "\n* {\n border: 1px solid black;\n}\n\n.box {\n position: relative;\n padding: 10px 50px 100px 20px;\n background-color: mediumseagreen;\n width: 200px;\n height: 200px;\n}\n\n.inner {\n position: absolute;\n left: 0;\n width : 100px;\n height: 100px;\n background-color: magenta;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 330 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 312 0+1+8] children: not-inline\n BlockContainer <div.box> at [31,21] positioned [0+1+20 200 50+1+508] [0+1+10 200 100+1+0] children: not-inline\n BlockContainer <div.inner> at [12,22] positioned [0+1+0 100 0+1+0] [0+1+0 100 0+1+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x332]\n PaintableWithLines (BlockContainer<BODY>) [9,9 782x314]\n PaintableWithLines (BlockContainer<DIV>.box) [10,10 272x312]\n PaintableWithLines (BlockContainer<DIV>.inner) [11,21 102x102]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x330] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div id=foo></div><div id=bar></div><div id=baz></div>", css = "\n * {\n border: 1px solid black;\n }\n div {\n height: 100px;\n width: 100px;\n position: absolute;\n height: 100px;\n }\n #foo {\n margin: auto;\n left: 0px;\n right: 0px;\n top: 0px;\n }\n #bar {\n margin-left: auto;\n margin-right: 0px;\n left: 0px;\n right: 0px;\n top: 100px;\n }\n #baz {\n margin-left: 0px;\n margin-right: auto;\n left: 0px;\n right: 0px;\n top: 200px;\n }\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 18 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 0 0+1+8] children: not-inline\n BlockContainer <div#foo> at [350,1] positioned [349+1+0 100 0+1+349] [0+1+0 100 0+1+0] [BFC] children: not-inline\n BlockContainer <div#bar> at [699,101] positioned [698+1+0 100 0+1+0] [0+1+0 100 0+1+0] [BFC] children: not-inline\n BlockContainer <div#baz> at [1,201] positioned [0+1+0 100 0+1+698] [0+1+0 100 0+1+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x20]\n PaintableWithLines (BlockContainer<BODY>) [9,9 782x2]\n PaintableWithLines (BlockContainer<DIV>#foo) [349,0 102x102]\n PaintableWithLines (BlockContainer<DIV>#bar) [698,100 102x102]\n PaintableWithLines (BlockContainer<DIV>#baz) [0,200 102x102]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x18] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"box\"><div class=\"inner\"></div></div>", css = "\n* {\n border: 1px solid black;\n}\n\n.box {\n position: relative;\n padding: 10px 50px 100px 20px;\n background-color: mediumseagreen;\n width: 200px;\n height: 200px;\n}\n\n.inner {\n position: absolute;\n width : 100px;\n height: 100px;\n bottom: 0;\n right: 0;\n background-color: magenta;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 330 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 312 0+1+8] children: not-inline\n BlockContainer <div.box> at [31,21] positioned [0+1+20 200 50+1+508] [0+1+10 200 100+1+0] children: not-inline\n BlockContainer <div.inner> at [180,220] positioned [0+1+0 100 0+1+0] [0+1+0 100 0+1+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x332]\n PaintableWithLines (BlockContainer<BODY>) [9,9 782x314]\n PaintableWithLines (BlockContainer<DIV>.box) [10,10 272x312]\n PaintableWithLines (BlockContainer<DIV>.inner) [179,219 102x102]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x330] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><body><div class=\"abspos\">", css = "\n body {\n position: relative;\n padding-top: 30%;\n }\n .abspos {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0px;\n left: 0px;\n background: orange;\n }\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 256 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,248] positioned [8+0+0 784 0+0+8] [8+0+240 0 0+0+8] children: not-inline\n BlockContainer <div.abspos> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 240 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x256]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x240]\n PaintableWithLines (BlockContainer<DIV>.abspos) [8,8 784x240]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x256] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"box\"><div class=\"inner\"></div></div>", css = "\n* {\n border: 1px solid black;\n}\n\n.box {\n position: relative;\n padding: 10px 50px 100px 20px;\n background-color: mediumseagreen;\n width: 200px;\n height: 200px;\n}\n\n.inner {\n position: absolute;\n left: 0;\n width : 100px;\n height: 100px;\n padding: 20%;\n background-color: magenta;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 330 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 312 0+1+8] children: not-inline\n BlockContainer <div.box> at [31,21] positioned [0+1+20 200 50+1+508] [0+1+10 200 100+1+0] children: not-inline\n BlockContainer <div.inner> at [66,76] positioned [0+1+54 100 54+1+0] [0+1+54 100 54+1+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x332]\n PaintableWithLines (BlockContainer<BODY>) [9,9 782x314]\n PaintableWithLines (BlockContainer<DIV>.box) [10,10 272x312]\n PaintableWithLines (BlockContainer<DIV>.inner) [11,21 210x210]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x330] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html>\n<div class=\"box\"><div class=\"inner\"></div></div>", css = "\n.box {\n position: relative;\n padding-top: 50px;\n}\n\n.inner {\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n background: linear-gradient(90deg, #FDDE5C 0%, #F8AB5E 16.66667%, #F56A62 33.33333%, #A176C8 50%, #759BEB 66.66667%, #65BEB3 83.33333%, #70DB96);\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: not-inline\n BlockContainer <div.box> at [8,58] positioned [0+0+0 784 0+0+0] [0+0+50 0 0+0+0] children: not-inline\n BlockContainer <div.inner> at [8,58] positioned [0+0+0 784 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]\n PaintableWithLines (BlockContainer<DIV>.box) [8,8 784x50]\n PaintableWithLines (BlockContainer<DIV>.inner) [8,58 784x50]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x66] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"box\"><div class=\"inner\"></div></div>", css = "\n* {\n border: 1px solid black;\n}\n\n.box {\n position: relative;\n padding: 10px 50px 100px 20px;\n background-color: mediumseagreen;\n width: 200px;\n height: 200px;\n}\n\n.inner {\n position: absolute;\n width : 100px;\n height: 100px;\n background-color: magenta;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 330 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] [8+1+0 780 0+1+8] [8+1+0 312 0+1+8] children: not-inline\n BlockContainer <div.box> at [31,21] positioned [0+1+20 200 50+1+508] [0+1+10 200 100+1+0] children: not-inline\n BlockContainer <div.inner> at [32,22] positioned [0+1+0 100 0+1+0] [0+1+0 100 0+1+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x332]\n PaintableWithLines (BlockContainer<BODY>) [9,9 782x314]\n PaintableWithLines (BlockContainer<DIV>.box) [10,10 272x312]\n PaintableWithLines (BlockContainer<DIV>.inner) [31,21 102x102]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x330] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html>\n\n<div><div class=\"square white\"></div><div class=\"clearfix\"></div><div class=\"square black\"></div></div>", css = "\n.clearfix {\n clear: both;\n margin-top: 9999px;\n margin-bottom: 100px;\n background-color: black;\n width: 10px;\n height: 10px;\n}\n.square {\n float: left;\n width: 49px;\n height: 49px;\n}\n.white {\n background-color: salmon;\n width: 100px;\n height: 100px;\n}\n.black {\n background-color: slateblue;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 267 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 110 0+0+100] children: not-inline\n BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 110 0+0+0] children: not-inline\n BlockContainer <div.square.white> at [8,8] floating [0+0+0 100 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline\n BlockContainer <div.clearfix> at [8,108] [0+0+0 10 0+0+774] [9999+0+0 10 0+0+100] children: not-inline\n BlockContainer <div.square.black> at [8,218] floating [0+0+0 49 0+0+0] [0+0+0 49 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x267]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x110]\n PaintableWithLines (BlockContainer<DIV>) [8,8 784x110]\n PaintableWithLines (BlockContainer<DIV>.square.white) [8,8 100x100]\n PaintableWithLines (BlockContainer<DIV>.clearfix) [8,108 10x10]\n PaintableWithLines (BlockContainer<DIV>.square.black) [8,218 49x49]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x267] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"box\"></div>", css = "\n.box {\n float: left;\n width: 300px;\n height: 200px;\n padding: 100px;\n background-color: magenta;\n box-sizing: border-box;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 208 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.box> at [108,108] floating [0+0+100 100 100+0+0] [0+0+100 0 100+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x208]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.box) [8,8 300x200]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x208] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!doctype html><body><div class=\"box\"></div>", css = "\n * {\n outline: 1px solid black !important;\n }\n body {\n border: 10px solid purple;\n display: block;\n height: 50%;\n }\n .box {\n background-color: palevioletred;\n height: 100px;\n width: 100px;\n }\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 136 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [18,18] [8+10+0 764 0+10+8] [8+10+0 100 0+10+8] children: not-inline\n BlockContainer <div.box> at [18,18] [0+0+0 100 0+0+664] [0+0+0 100 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x136]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x120]\n PaintableWithLines (BlockContainer<DIV>.box) [18,18 100x100]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x136] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE quirks>\n<body><div class=\"box\"></div>", css = "\n * {\n outline: 1px solid black !important;\n }\n body {\n border: 10px solid purple;\n display: block;\n height: 50%;\n }\n .box {\n background-color: palevioletred;\n height: 100px;\n width: 100px;\n }\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [18,18] [8+10+0 764 0+10+8] [8+10+0 300 0+10+8] children: not-inline\n BlockContainer <div.box> at [18,18] [0+0+0 100 0+0+664] [0+0+0 100 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x320]\n PaintableWithLines (BlockContainer<DIV>.box) [18,18 100x100]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x600] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"outer\"><div class=\"inner\">", css = "\n* {\n font-family: 'SerenitySans';\n border: 1px solid black;\n}\nbody {\n float: left;\n}\n.outer {\n min-width: 32px;\n background-color: orange;\n}\n.inner {\n width: 100px;\n height: 30px;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 52 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] floating [8+1+0 104 0+1+8] [8+1+0 34 0+1+8] [BFC] children: not-inline\n BlockContainer <div.outer> at [11,11] [0+1+0 102 0+1+0] [0+1+0 32 0+1+0] children: not-inline\n BlockContainer <div.inner> at [12,12] [0+1+0 100 0+1+0] [0+1+0 30 0+1+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x54]\n PaintableWithLines (BlockContainer<BODY>) [9,9 106x36]\n PaintableWithLines (BlockContainer<DIV>.outer) [10,10 104x34]\n PaintableWithLines (BlockContainer<DIV>.inner) [11,11 102x32]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x52] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!doctype html><div class=\"upper\"></div><div class=bfc><div class=\"inner\">", css = "\n .upper { \n margin-bottom: 50px;\n height: 20px;\n background: lime;\n }\n .bfc {\n display: flow-root;\n }\n .inner {\n width: 20px;\n height: 20px;\n background: black;\n }\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 106 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 90 0+0+8] children: not-inline\n BlockContainer <div.upper> at [8,8] [0+0+0 784 0+0+0] [0+0+0 20 0+0+50] children: not-inline\n BlockContainer <div.bfc> at [8,78] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline\n BlockContainer <div.inner> at [8,78] [0+0+0 20 0+0+764] [0+0+0 20 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x106]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x90]\n PaintableWithLines (BlockContainer<DIV>.upper) [8,8 784x20]\n PaintableWithLines (BlockContainer<DIV>.bfc) [8,78 784x20]\n PaintableWithLines (BlockContainer<DIV>.inner) [8,78 20x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x106] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=\"bump\"></div><div class=\"content\"></div>", css = "\nbody {\n margin: 0;\n}\n.bump {\n margin-top: 100px;\n}\n.content {\n background: green;\n width: 100px;\n height: 100px;\n margin-top: 200px;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 300 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [0,200] [0+0+0 800 0+0+0] [0+0+0 100 0+0+0] children: not-inline\n BlockContainer <div.bump> at [0,200] [0+0+0 800 0+0+0] [100+0+0 0 0+0+0] children: not-inline\n BlockContainer <div.content> at [0,200] [0+0+0 100 0+0+700] [200+0+0 100 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x300]\n PaintableWithLines (BlockContainer<BODY>) [0,200 800x100]\n PaintableWithLines (BlockContainer<DIV>.bump) [0,200 800x0]\n PaintableWithLines (BlockContainer<DIV>.content) [0,200 100x100]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x300] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!doctype html><div class=\"not-bfc\"></div><div class=bfc></div><div class=\"not-bfc\"></div>", css = "\n* {\n padding: 0;\n}\nhtml {\n background: white;\n}\nbody {\n background: pink;\n}\n.not-bfc {\n margin-top: 30px;\n height: 20px;\n background: orange;\n}\n.bfc {\n margin-top: 30px;\n display: flow-root;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 138 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,30] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline\n BlockContainer <div.not-bfc> at [8,30] [0+0+0 784 0+0+0] [30+0+0 20 0+0+0] children: not-inline\n BlockContainer <div.bfc> at [8,80] [0+0+0 784 0+0+0] [30+0+0 0 0+0+0] [BFC] children: not-inline\n BlockContainer <div.not-bfc> at [8,110] [0+0+0 784 0+0+0] [30+0+0 20 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x138]\n PaintableWithLines (BlockContainer<BODY>) [8,30 784x100]\n PaintableWithLines (BlockContainer<DIV>.not-bfc) [8,30 784x20]\n PaintableWithLines (BlockContainer<DIV>.bfc) [8,80 784x0]\n PaintableWithLines (BlockContainer<DIV>.not-bfc) [8,110 784x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x138] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!doctype html><body><div class=\"outer\"><div class=\"inner\">", css = " \n * { border: 1px solid black; } \n body { position: absolute; }\n .inner { \n max-width: 50px; \n height: 50px; \n } \n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [1,1] [0+1+0 798 0+1+0] [0+1+0 0 0+1+0] [BFC] children: not-inline\n BlockContainer <body> at [10,10] positioned [8+1+0 4 0+1+8] [8+1+0 54 0+1+8] [BFC] children: not-inline\n BlockContainer <div.outer> at [11,11] [0+1+0 2 0+1+0] [0+1+0 52 0+1+0] children: not-inline\n BlockContainer <div.inner> at [12,12] [0+1+0 0 0+1+0] [0+1+0 50 0+1+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x2]\n PaintableWithLines (BlockContainer<BODY>) [9,9 6x56]\n PaintableWithLines (BlockContainer<DIV>.outer) [10,10 4x54]\n PaintableWithLines (BlockContainer<DIV>.inner) [11,11 2x52]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [1,1 798x0] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!doctype html><body><main><div id=\"asset-grid\"><div id=\"virtual-timeline\">", css = "\n* { outline: 1px solid black; }\nbody { position: relative; }\nmain {\n position: absolute;\n height: 100%;\n} \n#asset-grid {\n background: pink;\n height: 100%;\n width: 100px;\n border: 10px solid red;\n} \n#virtual-timeline {\n background: orange;\n height: 30px;\n} \n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] positioned [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <main> at [8,8] positioned [0+0+0 120 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline\n BlockContainer <div#asset-grid> at [18,18] [0+10+0 100 0+10+0] [0+10+0 0 0+10+0] children: not-inline\n BlockContainer <div#virtual-timeline> at [18,18] [0+0+0 100 0+0+0] [0+0+0 30 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<MAIN>) [8,8 120x0]\n PaintableWithLines (BlockContainer<DIV>#asset-grid) [8,8 120x20]\n PaintableWithLines (BlockContainer<DIV>#virtual-timeline) [18,18 100x30]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x16] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html>\n<div></div>", css = "\ndiv {\n background-color: crimson;\n height: 100%;\n}\nbody {\n height: 50%;\n}\nhtml {\n height: 600px;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 300 0+0+8] children: not-inline\n BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 300 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x300]\n PaintableWithLines (BlockContainer<DIV>) [8,8 784x300]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x600] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE quirks>\n<div></div>", css = "\ndiv {\n background-color: crimson;\n height: 100%;\n}\n", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 616 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 600 0+0+8] children: not-inline\n BlockContainer <div> at [8,8] [0+0+0 784 0+0+0] [0+0+0 600 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x616]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x616]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x600]\n PaintableWithLines (BlockContainer<DIV>) [8,8 784x600]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x616] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { margin: 10px 20px; padding: 5px 7px; border: 3px solid; } .b { height: 30px; margin: 4px; border: 2px solid; padding: 1px 2px 3px 4px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 82 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,10] [8+0+0 784 0+0+8] [8+0+0 62 0+0+10] children: not-inline\n BlockContainer <div.a> at [38,18] [20+3+7 724 7+3+20] [10+3+5 46 5+3+10] children: not-inline\n BlockContainer <div.b> at [48,25] [4+2+4 706 2+2+4] [4+2+1 30 3+2+4] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x82]\n PaintableWithLines (BlockContainer<BODY>) [8,10 784x62]\n PaintableWithLines (BlockContainer<DIV>.a) [28,10 744x62]\n PaintableWithLines (BlockContainer<DIV>.b) [42,22 716x38]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x82] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div><div class=b></div><div class=c></div>", css = "div { height: 10px; } .a { margin-bottom: 20px; } .b { margin-top: 30px; margin-bottom: -5px; } .c { margin-top: -10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 784 0+0+0] [0+0+0 10 0+0+20] children: not-inline\n BlockContainer <div.b> at [8,48] [0+0+0 784 0+0+0] [30+0+0 10 0+0+-5] children: not-inline\n BlockContainer <div.c> at [8,48] [0+0+0 784 0+0+0] [-10+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.b) [8,48 784x10]\n PaintableWithLines (BlockContainer<DIV>.c) [8,48 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x66] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=p><div class=c></div></div><div class=n></div>", css = ".p { margin-top: 15px; } .c { margin-top: 25px; height: 10px; margin-bottom: 40px; } .n { margin-top: 10px; height: 5px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 88 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,25] [8+0+0 784 0+0+8] [8+0+0 55 0+0+8] children: not-inline\n BlockContainer <div.p> at [8,25] [0+0+0 784 0+0+0] [15+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.c> at [8,25] [0+0+0 784 0+0+0] [25+0+0 10 0+0+40] children: not-inline\n BlockContainer <div.n> at [8,75] [0+0+0 784 0+0+0] [10+0+0 5 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x88]\n PaintableWithLines (BlockContainer<BODY>) [8,25 784x55]\n PaintableWithLines (BlockContainer<DIV>.p) [8,25 784x10]\n PaintableWithLines (BlockContainer<DIV>.c) [8,25 784x10]\n PaintableWithLines (BlockContainer<DIV>.n) [8,75 784x5]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x88] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=x></div><div class=e></div><div class=y></div>", css = ".x, .y { height: 10px; } .x { margin-bottom: 10px; } .e { margin: 30px 0 5px; } .y { margin-top: -3px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 63 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 47 0+0+8] children: not-inline\n BlockContainer <div.x> at [8,8] [0+0+0 784 0+0+0] [0+0+0 10 0+0+10] children: not-inline\n BlockContainer <div.e> at [8,48] [0+0+0 784 0+0+0] [30+0+0 0 0+0+5] children: not-inline\n BlockContainer <div.y> at [8,45] [0+0+0 784 0+0+0] [-3+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x63]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x47]\n PaintableWithLines (BlockContainer<DIV>.x) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.e) [8,48 784x0]\n PaintableWithLines (BlockContainer<DIV>.y) [8,45 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x63] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div><div class=b></div><div class=c></div>", css = "div { height: 10px; } .a { width: 200px; margin: 0 auto; } .b { width: 300px; margin-left: auto; } .c { width: 50%; margin-right: auto; margin-left: 10%; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 46 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 30 0+0+8] children: not-inline\n BlockContainer <div.a> at [300,8] [292+0+0 200 0+0+292] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.b> at [492,18] [484+0+0 300 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.c> at [86.390625,28] [78.390625+0+0 392 0+0+313.609375] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x46]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x30]\n PaintableWithLines (BlockContainer<DIV>.a) [300,8 200x10]\n PaintableWithLines (BlockContainer<DIV>.b) [492,18 300x10]\n PaintableWithLines (BlockContainer<DIV>.c) [86.390625,28 392x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x46] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { width: 400px; } .b { width: 120%; height: 10px; margin-left: auto; margin-right: auto; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 26 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 10 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 400 0+0+384] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.b> at [8,8] [0+0+0 480 0+0+-80] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x26]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 400x10]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 480x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x26] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div><div class=b></div><div class=c></div><div class=d></div>", css = "div { height: 10px; } .a { max-width: 100px; } .b { min-width: 900px; } .c { width: 50%; max-width: 30%; } .d { width: 10px; min-width: 25%; padding: 0 5px; box-sizing: border-box; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 56 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 40 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 100 0+0+684] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.b> at [8,18] [0+0+0 900 0+0+-116] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.c> at [8,28] [0+0+0 235.1875 0+0+548.8125] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.d> at [13,38] [0+0+5 186 5+0+588] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 908x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x56]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x40]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 100x10]\n PaintableWithLines (BlockContainer<DIV>.b) [8,18 900x10]\n PaintableWithLines (BlockContainer<DIV>.c) [8,28 235.1875x10]\n PaintableWithLines (BlockContainer<DIV>.d) [8,38 196x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x56] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div><div class=c></div></div>", css = ".a { height: 200px; width: 300px; } .b { height: 25%; max-height: 40px; } .c { height: 10px; min-height: 50%; box-sizing: border-box; padding: 5px; border: 2px solid; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 300 0+0+484] [0+0+0 200 0+0+0] children: not-inline\n BlockContainer <div.b> at [8,8] [0+0+0 300 0+0+0] [0+0+0 40 0+0+0] children: not-inline\n BlockContainer <div.c> at [15,55] [0+2+5 286 5+2+0] [0+2+5 86 5+2+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x216]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x200]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 300x200]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 300x40]\n PaintableWithLines (BlockContainer<DIV>.c) [8,48 300x100]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x216] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { padding: 10px; } .b { height: 50%; min-height: 7px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 43 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 27 0+0+8] children: not-inline\n BlockContainer <div.a> at [18,18] [0+0+10 764 10+0+0] [0+0+10 7 10+0+0] children: not-inline\n BlockContainer <div.b> at [18,18] [0+0+0 764 0+0+0] [0+0+0 7 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x43]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x27]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x27]\n PaintableWithLines (BlockContainer<DIV>.b) [18,18 764x7]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x43] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div><div class=b></div>", css = ".a { width: calc(50% - 20px); height: calc(10px + 2em); } .b { width: calc(100px + 10%); height: calc(5px * 3); margin: calc(1em / 2); }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 81 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 65 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 372 0+0+412] [0+0+0 42 0+0+0] children: not-inline\n BlockContainer <div.b> at [16,58] [8+0+0 178.40625 0+0+597.59375] [8+0+0 15 0+0+8] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x81]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x65]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 372x42]\n PaintableWithLines (BlockContainer<DIV>.b) [16,58 178.40625x15]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x81] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=w></div></div><div class=b><div class=w></div></div><div class=c><div class=w></div></div>", css = ".w { width: 150px; height: 10px; } .a { width: min-content; } .b { width: max-content; } .c { width: fit-content; padding: 3px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 52 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 36 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 150 0+0+634] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.w> at [8,8] [0+0+0 150 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.b> at [8,18] [0+0+0 150 0+0+634] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.w> at [8,18] [0+0+0 150 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.c> at [11,31] [0+0+3 150 3+0+628] [0+0+3 10 3+0+0] children: not-inline\n BlockContainer <div.w> at [11,31] [0+0+0 150 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x52]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x36]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 150x10]\n PaintableWithLines (BlockContainer<DIV>.w) [8,8 150x10]\n PaintableWithLines (BlockContainer<DIV>.b) [8,18 150x10]\n PaintableWithLines (BlockContainer<DIV>.w) [8,18 150x10]\n PaintableWithLines (BlockContainer<DIV>.c) [8,28 156x16]\n PaintableWithLines (BlockContainer<DIV>.w) [11,31 150x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x52] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><center><div class=a></div></center><div align=right><div class=b></div></div>", css = ".a { width: 100px; height: 10px; } .b { width: 50px; height: 10px; margin-left: 5px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 20 0+0+8] children: not-inline\n BlockContainer <center> at [8,8] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.a> at [350,8] [0+0+0 100 0+0+684] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div> at [8,18] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.b> at [737,18] [5+0+0 50 0+0+729] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x36]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x20]\n PaintableWithLines (BlockContainer<CENTER>) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.a) [350,8 100x10]\n PaintableWithLines (BlockContainer<DIV>) [8,18 784x10]\n PaintableWithLines (BlockContainer<DIV>.b) [737,18 50x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x36] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=bfc><div class=a></div></div><div class=c></div>", css = ".bfc { display: flow-root; margin-top: 20px; } .a { margin-top: 30px; height: 10px; margin-bottom: 15px; } .c { height: 5px; margin-top: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 98 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,20] [8+0+0 784 0+0+8] [8+0+0 70 0+0+8] children: not-inline\n BlockContainer <div.bfc> at [8,20] [0+0+0 784 0+0+0] [20+0+0 55 0+0+0] [BFC] children: not-inline\n BlockContainer <div.a> at [8,50] [0+0+0 784 0+0+0] [30+0+0 10 0+0+15] children: not-inline\n BlockContainer <div.c> at [8,85] [0+0+0 784 0+0+0] [10+0+0 5 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x98]\n PaintableWithLines (BlockContainer<BODY>) [8,20 784x70]\n PaintableWithLines (BlockContainer<DIV>.bfc) [8,20 784x55]\n PaintableWithLines (BlockContainer<DIV>.a) [8,50 784x10]\n PaintableWithLines (BlockContainer<DIV>.c) [8,85 784x5]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x98] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { border-top: 1px solid; margin-top: 10px; } .b { margin-top: 20px; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 49 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,10] [8+0+0 784 0+0+8] [8+0+0 31 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,11] [0+0+0 784 0+0+0] [10+1+0 30 0+0+0] children: not-inline\n BlockContainer <div.b> at [8,31] [0+0+0 784 0+0+0] [20+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x49]\n PaintableWithLines (BlockContainer<BODY>) [8,10 784x31]\n PaintableWithLines (BlockContainer<DIV>.a) [8,10 784x31]\n PaintableWithLines (BlockContainer<DIV>.b) [8,31 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x49] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=e></div></div><div class=b></div>", css = ".a { margin-bottom: 10px; } .e { margin-top: 12px; margin-bottom: 18px; } .b { height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,18] [8+0+0 784 0+0+8] [8+0+0 10 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,18] [0+0+0 784 0+0+0] [0+0+0 0 0+0+10] children: not-inline\n BlockContainer <div.e> at [8,18] [0+0+0 784 0+0+0] [12+0+0 0 0+0+18] children: not-inline\n BlockContainer <div.b> at [8,18] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x36]\n PaintableWithLines (BlockContainer<BODY>) [8,18 784x10]\n PaintableWithLines (BlockContainer<DIV>.a) [8,18 784x0]\n PaintableWithLines (BlockContainer<DIV>.e) [8,18 784x0]\n PaintableWithLines (BlockContainer<DIV>.b) [8,18 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x36] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=l></div><div class=r></div><div class=n></div>", css = ".l { float: left; width: 100px; height: 50px; } .r { float: right; width: 200px; height: 30px; margin: 5px; } .n { height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 58 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 10 0+0+8] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 100 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.r> at [587,13] floating [5+0+0 200 0+0+5] [5+0+0 30 0+0+5] [BFC] children: not-inline\n BlockContainer <div.n> at [8,8] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x58]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 100x50]\n PaintableWithLines (BlockContainer<DIV>.r) [587,13 200x30]\n PaintableWithLines (BlockContainer<DIV>.n) [8,8 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x58] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=l></div><div class=l></div><div class=l></div><div class=l></div>", css = ".l { float: left; width: 300px; height: 20px; margin-right: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 48 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 300 0+0+10] [0+0+0 20 0+0+0] [BFC] children: not-inline\n BlockContainer <div.l> at [318,8] floating [0+0+0 300 0+0+10] [0+0+0 20 0+0+0] [BFC] children: not-inline\n BlockContainer <div.l> at [8,28] floating [0+0+0 300 0+0+10] [0+0+0 20 0+0+0] [BFC] children: not-inline\n BlockContainer <div.l> at [318,28] floating [0+0+0 300 0+0+10] [0+0+0 20 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x48]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 300x20]\n PaintableWithLines (BlockContainer<DIV>.l) [318,8 300x20]\n PaintableWithLines (BlockContainer<DIV>.l) [8,28 300x20]\n PaintableWithLines (BlockContainer<DIV>.l) [318,28 300x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x48] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=l></div><div class=r></div><div class=c></div><div class=d></div>", css = ".l { float: left; width: 100px; height: 50px; } .r { float: right; width: 100px; height: 70px; } .c { clear: left; height: 10px; } .d { clear: both; height: 10px; margin-top: 5px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 96 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 80 0+0+8] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 100 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.r> at [692,8] floating [0+0+0 100 0+0+0] [0+0+0 70 0+0+0] [BFC] children: not-inline\n BlockContainer <div.c> at [8,58] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.d> at [8,78] [0+0+0 784 0+0+0] [5+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x96]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x80]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 100x50]\n PaintableWithLines (BlockContainer<DIV>.r) [692,8 100x70]\n PaintableWithLines (BlockContainer<DIV>.c) [8,58 784x10]\n PaintableWithLines (BlockContainer<DIV>.d) [8,78 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x96] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=f><div class=w></div></div><div class=g><div class=w2></div><div class=w></div></div>", css = ".f { float: left; padding: 4px; border: 1px solid; } .w { width: 120px; height: 10px; } .g { float: right; } .w2 { width: 60px; height: 20px; margin-left: 15px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 38 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.f> at [13,13] floating [0+1+4 120 4+1+0] [0+1+4 10 4+1+0] [BFC] children: not-inline\n BlockContainer <div.w> at [13,13] [0+0+0 120 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.g> at [672,8] floating [0+0+0 120 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inline\n BlockContainer <div.w2> at [687,8] [15+0+0 60 0+0+45] [0+0+0 20 0+0+0] children: not-inline\n BlockContainer <div.w> at [672,28] [0+0+0 120 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x38]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.f) [8,8 130x20]\n PaintableWithLines (BlockContainer<DIV>.w) [13,13 120x10]\n PaintableWithLines (BlockContainer<DIV>.g) [672,8 120x30]\n PaintableWithLines (BlockContainer<DIV>.w2) [687,8 60x20]\n PaintableWithLines (BlockContainer<DIV>.w) [672,28 120x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x38] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=l></div><div class=bfc></div><div class=bfc2></div>", css = ".l { float: left; width: 200px; height: 100px; } .bfc { overflow: hidden; height: 30px; } .bfc2 { display: flow-root; width: 700px; height: 20px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 136 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 120 0+0+8] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 200 0+0+0] [0+0+0 100 0+0+0] [BFC] children: not-inline\n BlockContainer <div.bfc> at [208,8] [0+0+0 584 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inline\n BlockContainer <div.bfc2> at [8,108] [0+0+0 700 0+0+-116] [0+0+0 20 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x136]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x120]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 200x100]\n PaintableWithLines (BlockContainer<DIV>.bfc) [208,8 584x30]\n PaintableWithLines (BlockContainer<DIV>.bfc2) [8,108 700x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x136] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=root><div class=l></div><div class=r></div></div><div class=after></div>", css = ".root { display: flow-root; border: 2px solid; } .l { float: left; width: 50px; height: 80px; } .r { float: right; width: 50px; height: 40px; } .after { height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 110 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 94 0+0+8] children: not-inline\n BlockContainer <div.root> at [10,10] [0+2+0 780 0+2+0] [0+2+0 80 0+2+0] [BFC] children: not-inline\n BlockContainer <div.l> at [10,10] floating [0+0+0 50 0+0+0] [0+0+0 80 0+0+0] [BFC] children: not-inline\n BlockContainer <div.r> at [740,10] floating [0+0+0 50 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline\n BlockContainer <div.after> at [8,92] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x110]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x94]\n PaintableWithLines (BlockContainer<DIV>.root) [8,8 784x84]\n PaintableWithLines (BlockContainer<DIV>.l) [10,10 50x80]\n PaintableWithLines (BlockContainer<DIV>.r) [740,10 50x40]\n PaintableWithLines (BlockContainer<DIV>.after) [8,92 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x110] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=o><div class=i><div class=l></div></div><div class=n></div></div>", css = ".o { padding-left: 20px; } .i { margin-left: 30px; } .l { float: left; width: 100px; height: 40px; } .n { overflow: hidden; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 48 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 10 0+0+8] children: not-inline\n BlockContainer <div.o> at [28,8] [0+0+20 764 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <div.i> at [58,8] [30+0+0 734 0+0+0] [0+0+0 0 0+0+0] children: not-inline\n BlockContainer <div.l> at [58,8] floating [0+0+0 100 0+0+0] [0+0+0 40 0+0+0] [BFC] children: not-inline\n BlockContainer <div.n> at [128,8] [0+0+0 634 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x48]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.o) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.i) [58,8 734x0]\n PaintableWithLines (BlockContainer<DIV>.l) [58,8 100x40]\n PaintableWithLines (BlockContainer<DIV>.n) [128,8 634x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x48] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=l></div><div class=l2></div><div class=r></div>", css = ".l { float: left; width: 500px; height: 30px; } .l2 { float: left; width: 200px; height: 20px; } .r { float: right; width: 150px; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 38 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 500 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inline\n BlockContainer <div.l2> at [508,8] floating [0+0+0 200 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline\n BlockContainer <div.r> at [642,28] floating [0+0+0 150 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x38]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 500x30]\n PaintableWithLines (BlockContainer<DIV>.l2) [508,8 200x20]\n PaintableWithLines (BlockContainer<DIV>.r) [642,28 150x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x38] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=c><div class=l></div><div class=m></div></div>", css = ".c { width: 300px; } .l { float: left; width: 100px; height: 20px; } .m { margin-top: 30px; clear: left; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 46 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 30 0+0+8] children: not-inline\n BlockContainer <div.c> at [8,8] [0+0+0 300 0+0+484] [0+0+0 30 0+0+0] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 100 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline\n BlockContainer <div.m> at [8,28] [0+0+0 300 0+0+0] [30+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x46]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x30]\n PaintableWithLines (BlockContainer<DIV>.c) [8,8 300x30]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 100x20]\n PaintableWithLines (BlockContainer<DIV>.m) [8,28 300x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x46] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=l></div><div class=f></div>", css = ".l { float: left; width: 40%; height: 30px; } .f { float: left; width: 70%; height: 10px; clear: right; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 48 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.l> at [8,8] floating [0+0+0 313.59375 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inline\n BlockContainer <div.f> at [8,38] floating [0+0+0 548.796875 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x48]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.l) [8,8 313.59375x30]\n PaintableWithLines (BlockContainer<DIV>.f) [8,38 548.796875x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x48] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=r></div><div class=s></div>", css = ".r { position: relative; top: 10px; left: 20px; height: 30px; } .s { position: relative; bottom: 5px; right: 15px; height: 10px; width: 50%; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 56 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 40 0+0+8] children: not-inline\n BlockContainer <div.r> at [28,18] positioned [0+0+0 784 0+0+0] [0+0+0 30 0+0+0] children: not-inline\n BlockContainer <div.s> at [-7,33] positioned [0+0+0 392 0+0+392] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 812x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x56]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x40]\n PaintableWithLines (BlockContainer<DIV>.r) [28,18 784x30]\n PaintableWithLines (BlockContainer<DIV>.s) [-7,33 392x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x56] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=a></div><div class=b></div><div class=c></div></div>", css = ".cb { position: relative; width: 400px; height: 300px; padding: 10px; } .a { position: absolute; top: 10px; left: 20px; right: 30px; height: 50px; } .b { position: absolute; bottom: 0; right: 0; width: 25%; height: 25%; } .c { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; width: 100px; height: 60px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 336 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 320 0+0+8] children: not-inline\n BlockContainer <div.cb> at [18,18] positioned [0+0+10 400 10+0+364] [0+0+10 300 10+0+0] children: not-inline\n BlockContainer <div.a> at [28,18] positioned [0+0+0 370 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [323,248] positioned [0+0+0 105 0+0+0] [0+0+0 80 0+0+0] [BFC] children: not-inline\n BlockContainer <div.c> at [168,138] positioned [160+0+0 100 0+0+160] [130+0+0 60 0+0+130] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x336]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x320]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 420x320]\n PaintableWithLines (BlockContainer<DIV>.a) [28,18 370x50]\n PaintableWithLines (BlockContainer<DIV>.b) [323,248 105x80]\n PaintableWithLines (BlockContainer<DIV>.c) [168,138 100x60]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x336] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=a><div class=w></div></div></div>", css = ".cb { position: relative; height: 100px; } .a { position: absolute; left: 10px; top: 5px; padding: 2px; } .w { width: 77px; height: 13px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline\n BlockContainer <div.cb> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 100 0+0+0] children: not-inline\n BlockContainer <div.a> at [20,15] positioned [0+0+2 77 2+0+0] [0+0+2 13 2+0+0] [BFC] children: not-inline\n BlockContainer <div.w> at [20,15] [0+0+0 77 0+0+0] [0+0+0 13 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 784x100]\n PaintableWithLines (BlockContainer<DIV>.a) [18,13 81x17]\n PaintableWithLines (BlockContainer<DIV>.w) [20,15 77x13]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x116] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div><div class=n></div>", css = ".a { position: fixed; bottom: 10px; right: 10px; width: 50px; height: 50px; } .n { height: 20px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 20 0+0+8] children: not-inline\n BlockContainer <div.a> at [740,540] positioned [0+0+0 50 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.n> at [8,8] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x36]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x20]\n PaintableWithLines (BlockContainer<DIV>.a) [740,540 50x50]\n PaintableWithLines (BlockContainer<DIV>.n) [8,8 784x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x36] [children: 1] (z-index: auto)\n SC for BlockContainer<DIV>.a [740,540 50x50] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=s></div><div class=a></div><div class=t></div></div>", css = ".cb { position: relative; padding: 5px; } .s { height: 40px; } .a { position: absolute; width: 10px; height: 10px; } .t { height: 7px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 73 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 57 0+0+8] children: not-inline\n BlockContainer <div.cb> at [13,13] positioned [0+0+5 774 5+0+0] [0+0+5 47 5+0+0] children: not-inline\n BlockContainer <div.s> at [13,13] [0+0+0 774 0+0+0] [0+0+0 40 0+0+0] children: not-inline\n BlockContainer <div.a> at [13,53] positioned [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n BlockContainer <div.t> at [13,53] [0+0+0 774 0+0+0] [0+0+0 7 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x73]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x57]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 784x57]\n PaintableWithLines (BlockContainer<DIV>.s) [13,13 774x40]\n PaintableWithLines (BlockContainer<DIV>.a) [13,53 10x10]\n PaintableWithLines (BlockContainer<DIV>.t) [13,53 774x7]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x73] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=a><div class=b></div></div></div>", css = ".cb { position: relative; width: 500px; height: 400px; } .a { position: absolute; left: 50px; top: 50px; width: 200px; height: 200px; } .b { position: absolute; right: 10%; bottom: 10%; width: 20px; height: 20px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 416 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 400 0+0+8] children: not-inline\n BlockContainer <div.cb> at [8,8] positioned [0+0+0 500 0+0+284] [0+0+0 400 0+0+0] children: not-inline\n BlockContainer <div.a> at [58,58] positioned [0+0+0 200 0+0+0] [0+0+0 200 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [218,218] positioned [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x416]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x400]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 500x400]\n PaintableWithLines (BlockContainer<DIV>.a) [58,58 200x200]\n PaintableWithLines (BlockContainer<DIV>.b) [218,218 20x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x416] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=a></div><div class=b></div></div>", css = ".cb { position: relative; height: 200px; } .a { position: absolute; top: 0; bottom: 0; left: 0; width: 30px; max-height: 50px; } .b { position: absolute; top: 10px; height: 20px; left: 0; right: 0; min-width: 900px; max-width: 100px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline\n BlockContainer <div.cb> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 200 0+0+0] children: not-inline\n BlockContainer <div.a> at [8,8] positioned [0+0+0 30 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,18] positioned [0+0+0 900 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 908x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x216]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x200]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 784x200]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 30x50]\n PaintableWithLines (BlockContainer<DIV>.b) [8,18 900x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x216] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=a></div></div>", css = ".cb { position: relative; height: 200px; width: 200px; } .a { position: absolute; top: 20%; left: 10%; bottom: 30%; right: 40%; margin: 5px 10%; border: 3px solid; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 216 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 200 0+0+8] children: not-inline\n BlockContainer <div.cb> at [8,8] positioned [0+0+0 200 0+0+584] [0+0+0 200 0+0+0] children: not-inline\n BlockContainer <div.a> at [51,56] positioned [20+3+0 54 0+3+20] [5+3+0 84 0+3+5] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x216]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x200]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 200x200]\n PaintableWithLines (BlockContainer<DIV>.a) [48,53 60x90]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x216] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=r><div class=a></div></div>", css = ".r { position: relative; left: 30px; top: -10px; margin: 20px; height: 100px; } .a { position: absolute; left: 0; top: 0; width: 10px; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 140 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,20] [8+0+0 784 0+0+8] [8+0+0 100 0+0+20] children: not-inline\n BlockContainer <div.r> at [58,10] positioned [20+0+0 744 0+0+20] [20+0+0 100 0+0+20] children: not-inline\n BlockContainer <div.a> at [58,10] positioned [0+0+0 10 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 802x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x140]\n PaintableWithLines (BlockContainer<BODY>) [8,20 784x100]\n PaintableWithLines (BlockContainer<DIV>.r) [58,10 744x100]\n PaintableWithLines (BlockContainer<DIV>.a) [58,10 10x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x140] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<div class=a></div>", css = "html, body { height: 50%; } .a { height: 50%; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 300 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 150 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 784 0+0+0] [0+0+0 75 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x300]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x150]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x75]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x300] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<body><div class=a></div></body>", css = "body { margin: 20px; } .a { height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [20,20] [20+0+0 760 0+0+20] [20+0+0 560 0+0+20] children: not-inline\n BlockContainer <div.a> at [20,20] [0+0+0 760 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]\n PaintableWithLines (BlockContainer<BODY>) [20,20 760x560]\n PaintableWithLines (BlockContainer<DIV>.a) [20,20 760x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x600] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div>", css = "html { padding: 10px; border: 5px solid; height: 300px; } body { min-height: 100%; margin: 0; } .a { height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [15,15] [0+5+10 770 10+5+0] [0+5+10 300 10+5+0] [BFC] children: not-inline\n BlockContainer <body> at [15,15] [0+0+0 770 0+0+0] [0+0+0 300 0+0+0] children: not-inline\n BlockContainer <div.a> at [15,15] [0+0+0 770 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x330]\n PaintableWithLines (BlockContainer<BODY>) [15,15 770x300]\n PaintableWithLines (BlockContainer<DIV>.a) [15,15 770x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [15,15 770x300] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div>", css = "html { overflow: hidden; } body { overflow: scroll; } .a { height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 26 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 10 0+0+8] [BFC] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x26]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x26] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a></div><div class=b></div>", css = ".a { column-count: 3; height: 10px; } .b { column-width: 100px; column-gap: 10px; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 36 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 20 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,18] [0+0+0 784 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x36]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x20]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x10]\n PaintableWithLines (BlockContainer<DIV>.b) [8,18 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x36] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { contain: layout; margin-top: 10px; } .b { margin-top: 20px; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 48 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,10] [8+0+0 784 0+0+8] [8+0+0 30 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,10] [0+0+0 784 0+0+0] [10+0+0 30 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,30] [0+0+0 784 0+0+0] [20+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x48]\n PaintableWithLines (BlockContainer<BODY>) [8,10 784x30]\n PaintableWithLines (BlockContainer<DIV>.a) [8,10 784x30]\n PaintableWithLines (BlockContainer<DIV>.b) [8,30 784x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x48] [children: 1] (z-index: auto)\n SC for BlockContainer<DIV>.a [8,10 784x30] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { width: 300px; height: 100px; } .b { width: 50%; height: 50%; padding: 10%; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 300 0+0+484] [0+0+0 100 0+0+0] children: not-inline\n BlockContainer <div.b> at [38,38] [0+0+30 150 30+0+90] [0+0+30 50 30+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 300x100]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 210x110]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x116] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><ul><li class=a></li><li class=b></li></ul>", css = "li { height: 20px; } .b { list-style-position: inside; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 72 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,16] [8+0+0 784 0+0+8] [8+0+0 40 0+0+16] children: not-inline\n BlockContainer <ul> at [48,16] [0+0+40 744 0+0+0] [16+0+0 40 0+0+16] children: not-inline\n ListItemBox <li.a> at [48,16] [0+0+0 744 0+0+0] [0+0+0 20 0+0+0] children: not-inline\n ListItemMarkerBox <(anonymous)> at [34,22] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline\n ListItemBox <li.b> at [62,36] [0+0+0 730 0+0+0] [0+0+0 20 0+0+0] children: not-inline\n ListItemMarkerBox <(anonymous)> at [48,42] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x72]\n PaintableWithLines (BlockContainer<BODY>) [8,16 784x40]\n PaintableWithLines (BlockContainer<UL>) [8,16 784x40]\n PaintableWithLines (ListItemBox<LI>.a) [48,16 744x20]\n MarkerPaintable (ListItemMarkerBox(anonymous)) [34,22 6x6]\n PaintableWithLines (ListItemBox<LI>.b) [62,36 730x20]\n MarkerPaintable (ListItemMarkerBox(anonymous)) [48,42 6x6]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x72] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><ol><li></li></ol>", css = "ol { list-style-type: square; } li { height: 15px; width: 100px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,16] [8+0+0 784 0+0+8] [8+0+0 18 0+0+16] children: not-inline\n BlockContainer <ol> at [48,16] [0+0+40 744 0+0+0] [16+0+0 18 0+0+16] children: not-inline\n ListItemBox <li> at [48,16] [0+0+0 100 0+0+644] [0+0+0 18 0+0+0] children: not-inline\n ListItemMarkerBox <(anonymous)> at [34,22] [0+0+0 6 0+0+0] [0+0+0 6 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x50]\n PaintableWithLines (BlockContainer<BODY>) [8,16 784x18]\n PaintableWithLines (BlockContainer<OL>) [8,16 784x18]\n PaintableWithLines (ListItemBox<LI>) [48,16 100x18]\n MarkerPaintable (ListItemMarkerBox(anonymous)) [34,22 6x6]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x50] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><fieldset><legend></legend><div class=a></div></fieldset>", css = "legend { width: 50px; height: 10px; } .a { height: 30px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 73.59375 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 57.59375 0+0+8] children: not-inline\n FieldSetBox <fieldset> at [24,15.59375] [2+2+12 752 12+2+2] [0+2+5.59375 38 10+2+0] [BFC] children: not-inline\n LegendBox <legend> at [26,8] [0+0+2 50 2+0+698] [0+0+0 10 0+0+0] children: not-inline\n BlockContainer <(anonymous)> at [24,23.59375] [0+0+0 752 0+0+0] [0+0+0 30 0+0+0] [BFC] children: not-inline\n BlockContainer <div.a> at [24,23.59375] [0+0+0 752 0+0+0] [0+0+0 30 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x73.59375]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x57.59375]\n FieldSetPaintable (FieldSetBox<FIELDSET>) [10,8 780x57.59375]\n PaintableWithLines (LegendBox<LEGEND>) [24,8 54x10]\n PaintableWithLines (BlockContainer(anonymous)) [24,23.59375 752x30]\n PaintableWithLines (BlockContainer<DIV>.a) [24,23.59375 752x30]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x73.59375] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><fieldset><div class=a></div></fieldset>", css = ".a { height: 30px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 65.59375 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 49.59375 0+0+8] children: not-inline\n FieldSetBox <fieldset> at [24,15.59375] [2+2+12 752 12+2+2] [0+2+5.59375 30 10+2+0] [BFC] children: not-inline\n BlockContainer <div.a> at [24,15.59375] [0+0+0 752 0+0+0] [0+0+0 30 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x65.59375]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x49.59375]\n FieldSetPaintable (FieldSetBox<FIELDSET>) [10,8 780x49.59375]\n PaintableWithLines (BlockContainer<DIV>.a) [24,15.59375 752x30]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x65.59375] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><img class=a><img class=b><img class=c>", css = "img { display: block; } .a { width: 50px; } .b { height: 40px; width: 70px; } .c { width: 20%; min-height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: not-inline\n ImageBox <img.a> at [8,8] [0+0+0 50 0+0+734] [0+0+0 0 0+0+0] children: not-inline\n ImageBox <img.b> at [8,8] [0+0+0 70 0+0+714] [0+0+0 40 0+0+0] children: not-inline\n ImageBox <img.c> at [8,48] [0+0+0 156.796875 0+0+627.203125] [0+0+0 10 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]\n ImagePaintable (ImageBox<IMG>.a) [8,8 50x0]\n ImagePaintable (ImageBox<IMG>.b) [8,8 70x40]\n ImagePaintable (ImageBox<IMG>.c) [8,48 156.796875x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x66] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><img class=a></div>", css = ".cb { position: relative; height: 300px; } .a { position: absolute; right: 10px; bottom: 20px; width: 30px; height: 40px; margin: auto; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 316 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 300 0+0+8] children: not-inline\n BlockContainer <div.cb> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 300 0+0+0] children: not-inline\n ImageBox <img.a> at [752,128] positioned [0+0+0 30 0+0+0] [120+0+0 40 0+0+120] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x316]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x300]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 784x300]\n ImagePaintable (ImageBox<IMG>.a) [752,128 30x40]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x316] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=cb><div class=anchor></div><div class=pos></div></div>", css = ".cb { position: relative; height: 300px; } .anchor { anchor-name: --a; width: 100px; height: 50px; margin-left: 30px; } .pos { position: absolute; position-anchor: --a; top: anchor(bottom); left: anchor(right); width: 20px; height: 20px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 316 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 300 0+0+8] children: not-inline\n BlockContainer <div.cb> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 300 0+0+0] children: not-inline\n BlockContainer <div.anchor> at [38,8] [30+0+0 100 0+0+654] [0+0+0 50 0+0+0] children: not-inline\n BlockContainer <div.pos> at [138,58] positioned [0+0+0 20 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x316]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x300]\n PaintableWithLines (BlockContainer<DIV>.cb) [8,8 784x300]\n PaintableWithLines (BlockContainer<DIV>.anchor) [38,8 100x50]\n PaintableWithLines (BlockContainer<DIV>.pos) [138,58 20x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x316] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=s></div><div class=t></div>", css = ".s { position: sticky; top: 10px; height: 20px; } .t { height: 5000px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 5036 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 5020 0+0+8] children: not-inline\n BlockContainer <div.s> at [8,8] positioned [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] children: not-inline\n BlockContainer <div.t> at [8,28] [0+0+0 784 0+0+0] [0+0+0 5000 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x5036]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x5036]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x5020]\n PaintableWithLines (BlockContainer<DIV>.s) [8,8 784x20]\n PaintableWithLines (BlockContainer<DIV>.t) [8,28 784x5000]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x5036] [children: 1] (z-index: auto)\n SC for BlockContainer<DIV>.s [8,8 784x20] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { position: absolute; top: 10px; left: 10px; } .b { width: 50px; height: 40px; margin: 5px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.a> at [10,10] positioned [0+0+0 60 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [15,15] [5+0+0 50 0+0+5] [5+0+0 40 0+0+5] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.a) [10,10 60x50]\n PaintableWithLines (BlockContainer<DIV>.b) [15,15 50x40]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x16] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=f></div></div>", css = ".a { position: absolute; top: 0; left: 0; padding: 2px; } .f { float: right; width: 60px; height: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.a> at [2,2] positioned [0+0+2 60 2+0+0] [0+0+2 10 2+0+0] [BFC] children: not-inline\n BlockContainer <div.f> at [2,2] floating [0+0+0 60 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.a) [0,0 64x14]\n PaintableWithLines (BlockContainer<DIV>.f) [2,2 60x10]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x16] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div><div class=c></div></div>", css = ".a { float: left; } .b { width: 30px; height: 5px; } .c { float: left; width: 70px; height: 5px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 18 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] floating [0+0+0 70 0+0+0] [0+0+0 10 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,8] [0+0+0 30 0+0+40] [0+0+0 5 0+0+0] children: not-inline\n BlockContainer <div.c> at [8,13] floating [0+0+0 70 0+0+0] [0+0+0 5 0+0+0] [BFC] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x18]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 70x10]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 30x5]\n PaintableWithLines (BlockContainer<DIV>.c) [8,13 70x5]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x18] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { width: 200px; height: 100px; overflow: auto; } .b { height: 500px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 116 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 100 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 200 0+0+584] [0+0+0 100 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,8] [0+0+0 200 0+0+0] [0+0+0 500 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x116]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x100]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 200x100] overflow: [8,8 200x500]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 200x500]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x116] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { min-height: 50px; overflow: hidden; } .b { height: 20px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 66 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 50 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] [0+0+0 784 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,8] [0+0+0 784 0+0+0] [0+0+0 20 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x50]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 784x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x66] [children: 0] (z-index: auto)\n"),
TestLayoutGeometryCase(mode = "layout", html = "<!DOCTYPE html><div class=a><div class=b></div></div>", css = ".a { position: absolute; min-height: 50px; } .b { height: 20px; width: 10px; }", expected = " Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline\n BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline\n BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: not-inline\n BlockContainer <div.a> at [8,8] positioned [0+0+0 10 0+0+0] [0+0+0 50 0+0+0] [BFC] children: not-inline\n BlockContainer <div.b> at [8,8] [0+0+0 10 0+0+0] [0+0+0 20 0+0+0] children: not-inline\n \n ViewportPaintable (Viewport<#document>) [0,0 800x600]\n PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]\n PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]\n PaintableWithLines (BlockContainer<DIV>.a) [8,8 10x50]\n PaintableWithLines (BlockContainer<DIV>.b) [8,8 10x20]\n \n SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)\n SC for BlockContainer<HTML> [0,0 800x16] [children: 0] (z-index: auto)\n"),
]