Do not adjust margins in over-constrained cases (#31345)

This deviates from css2, but it's mandated by css-align, and matches
what other browsers do when no margin is 'auto'.

When some margin is 'auto', this should keep the proper round-tripping
behavior that Gecko and WebKit lack, and Blink recently adopted.
This commit is contained in:
Oriol Brufau 2024-02-21 18:07:20 +01:00 committed by GitHub
parent e1d04b638f
commit 4532f211be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 129 additions and 118 deletions

View file

@ -1,6 +0,0 @@
[auto-margins-used-values-with-floats.tentative.html]
[.box 2]
expected: FAIL
[.box 5]
expected: FAIL

View file

@ -1,7 +1,4 @@
[inheritance.html]
[Property margin-inline-end does not inherit]
expected: FAIL
[Property min-block-size has initial value 0px]
expected: FAIL

View file

@ -96,21 +96,6 @@
[<iframe marginwidth="200.25%"> mapping to marginRight]
expected: FAIL
[<iframe marginwidth="-200"> mapping to marginRight]
expected: FAIL
[<iframe marginwidth="-200px"> mapping to marginRight]
expected: FAIL
[<iframe marginwidth=" -200"> mapping to marginRight]
expected: FAIL
[<iframe marginwidth="+-200"> mapping to marginRight]
expected: FAIL
[<iframe marginwidth="-+200"> mapping to marginRight]
expected: FAIL
[<iframe marginheight="200"> mapping to marginTop]
expected: FAIL