Ver código fonte

LibWeb/Tests: Port height:auto abspos flex container test to layout test

This test was written before we had layout test functionality.
Shannon Booth 1 ano atrás
pai
commit
a5fb0b4243

+ 16 - 0
Tests/LibWeb/Layout/expected/abspos-flexbox-with-auto-height.txt

@@ -0,0 +1,16 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+  BlockContainer <html> at (1,1) content-size 798x18 [BFC] children: not-inline
+    BlockContainer <body> at (10,10) content-size 780x0 children: not-inline
+      Box <nav> at (11,11) content-size 310.453125x19.46875 positioned flex-container(row) [FFC] children: not-inline
+        BlockContainer <div.item> at (12,12) content-size 308.453125x17.46875 flex-item [BFC] children: inline
+          line 0 width: 308.453125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+            frag 0 from TextNode start: 0, length: 36, rect: [12,12 308.453125x17.46875]
+              "This should have a green background."
+          TextNode <#text>
+
+ViewportPaintable (Viewport<#document>) [0,0 800x600]
+  PaintableWithLines (BlockContainer<HTML>) [0,0 800x20] overflow: [1,1 798x30.46875]
+    PaintableWithLines (BlockContainer<BODY>) [9,9 782x2] overflow: [10,10 312.453125x21.46875]
+      PaintableBox (Box<NAV>) [10,10 312.453125x21.46875]
+        PaintableWithLines (BlockContainer<DIV>.item) [11,11 310.453125x19.46875]
+          TextPaintable (TextNode<#text>)

+ 1 - 1
Base/res/html/tests/abspos-flexbox-with-auto-height.html → Tests/LibWeb/Layout/input/abspos-flexbox-with-auto-height.html

@@ -9,4 +9,4 @@
     .item {
         background: lime;
     }
-</style></head><body><nav><div class=item>This should have a green background.</div></nav></body></html>
+</style></head><body><nav><div class=item>This should have a green background.</div></nav></body></html>