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

@ -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