From 8c03d21e954785241ffec75fb239b276495d7b12 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 19 Apr 2023 10:08:11 +0200 Subject: LibWeb: Fix broken handling of `flex: ` shorthand This is a tiny bit messy because: - The spec says we should expand this to `flex: 1 0` - All major engines expand it to `flex: 1 0%` Spec bug: https://github.com/w3c/csswg-drafts/issues/5742 --- Tests/LibWeb/Layout/expected/flex-grow-2.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Tests/LibWeb/Layout/expected') diff --git a/Tests/LibWeb/Layout/expected/flex-grow-2.txt b/Tests/LibWeb/Layout/expected/flex-grow-2.txt index a42104409f..2542329f6b 100644 --- a/Tests/LibWeb/Layout/expected/flex-grow-2.txt +++ b/Tests/LibWeb/Layout/expected/flex-grow-2.txt @@ -4,23 +4,23 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline Box at (9,9) content-size 500x102 flex-container(row) children: not-inline BlockContainer <(anonymous)> at (9,9) content-size 0x0 children: inline TextNode <#text> - BlockContainer at (10,10) content-size 132.333343x100 flex-item children: inline + BlockContainer at (10,10) content-size 82.333335x100 flex-item children: inline line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125 frag 0 from TextNode start: 0, length: 1, rect: [10,10 6.34375x17.46875] "1" TextNode <#text> BlockContainer <(anonymous)> at (9,9) content-size 0x0 children: inline TextNode <#text> - BlockContainer at (144.333343,10) content-size 164.666671x100 flex-item children: inline + BlockContainer at (94.333335,10) content-size 164.666671x100 flex-item children: inline line 0 width: 8.8125, height: 17.46875, bottom: 17.46875, baseline: 13.53125 - frag 0 from TextNode start: 0, length: 1, rect: [144.333343,10 8.8125x17.46875] + frag 0 from TextNode start: 0, length: 1, rect: [94.333335,10 8.8125x17.46875] "2" TextNode <#text> BlockContainer <(anonymous)> at (9,9) content-size 0x0 children: inline TextNode <#text> - BlockContainer at (311,10) content-size 197x100 flex-item children: inline + BlockContainer at (261,10) content-size 247x100 flex-item children: inline line 0 width: 9.09375, height: 17.46875, bottom: 17.46875, baseline: 13.53125 - frag 0 from TextNode start: 0, length: 1, rect: [311,10 9.09375x17.46875] + frag 0 from TextNode start: 0, length: 1, rect: [261,10 9.09375x17.46875] "3" TextNode <#text> BlockContainer <(anonymous)> at (9,9) content-size 0x0 children: inline -- cgit v1.2.3