mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
layout: Require specific layout info in BoxFragment::new()
(#37917)
It was very easy to forget about using `.with_specific_layout_info()` to set the specific layout info, so it's better to make it a parameter. In fact this already happened in the past: #36993 fixed the missing specific layout info for flex items. This patch fixes it for floats and atomic inlines. It also propagates it in other cases where not doing so was not a big deal because the specific layout info was None, but that was a fragile assumption. Testing: Various WPT improvements Fixes: #37898 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
87f2871661
commit
fe9d49fccc
16 changed files with 126 additions and 687 deletions
|
@ -1,40 +1,10 @@
|
|||
[grid-inline-support-repeat-001.html]
|
||||
['emptyGrid' with: grid-template-columns: repeat(1, auto); and grid-template-rows: repeat(1, auto);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(1, auto); and grid-template-rows: repeat(1, auto);]
|
||||
expected: FAIL
|
||||
|
||||
['emptyGrid' with: grid-template-columns: repeat(2, auto); and grid-template-rows: repeat(2, auto);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(2, auto); and grid-template-rows: repeat(2, auto);]
|
||||
expected: FAIL
|
||||
|
||||
['emptyGrid' with: grid-template-columns: repeat(2, minmax(50px, calc(50px + 50%))); and grid-template-rows: repeat(2, minmax(50px, calc(50px + 50%)));]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(2, minmax(50px, calc(50px + 50%))); and grid-template-rows: repeat(2, minmax(50px, calc(50px + 50%)));]
|
||||
expected: FAIL
|
||||
|
||||
['emptyGrid' with: grid-template-columns: repeat(5, 10%); and grid-template-rows: repeat(5, 10%);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(5, 10%); and grid-template-rows: repeat(5, 10%);]
|
||||
expected: FAIL
|
||||
|
||||
['emptyGrid' with: grid-template-columns: max-content repeat(2, 25%) 1fr; and grid-template-rows: 100px repeat(2, 25%) 1fr;]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: max-content repeat(2, 25%) 1fr; and grid-template-rows: max-content repeat(2, 25%) 1fr;]
|
||||
expected: FAIL
|
||||
|
||||
['emptyGrid' with: grid-template-columns: repeat(2, min-content 50px); and grid-template-rows: repeat(2, min-content 50px);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(2, min-content 50px); and grid-template-rows: repeat(2, min-content 50px);]
|
||||
expected: FAIL
|
||||
|
||||
['emptyGrid' with: grid-template-columns: repeat(2, [a\] minmax(50px, 100px) [b\] 25em [c\]); and grid-template-rows: repeat(2, [a\] minmax(50px, 100px) [b\] 25em [c\]);]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -71,23 +41,8 @@
|
|||
['grid' with: grid-template-columns: [a\] min-content repeat(2, [b\] 1fr [c\] calc(20px + 10%)) [d\] minmax(30em, 50em) [e\]; and grid-template-rows: [z\] min-content repeat(2, [y\] 1fr [x\] calc(10% + 40px)) [w\] minmax(3em, 5em) [v\];]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(-1, auto); and grid-template-rows: repeat(-1, auto);]
|
||||
['emptyGrid' with: grid-template-columns: [a\] repeat(2, [b\] 100px); and grid-template-rows: [a\] repeat(2, [b\] 100px);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(auto, 2); and grid-template-rows: repeat(auto, 2);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat 2, auto; and grid-template-rows: repeat 2, auto;]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(2 auto); and grid-template-rows: repeat(2 auto);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: 100px (repeat 2, auto); and grid-template-rows: (repeat 2, auto);]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: repeat(2, 50px repeat(2, 100px)); and grid-template-rows: repeat(2, 50px repeat(2, 100px));]
|
||||
expected: FAIL
|
||||
|
||||
['grid' with: grid-template-columns: 100px repeat(2, [a\]); and grid-template-rows: 100px repeat(2, [a\]);]
|
||||
['grid' with: grid-template-columns: [a\] repeat(2, [b\] 100px); and grid-template-rows: [a\] repeat(2, [b\] 100px);]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue