layout: Let getComputedStyle resolve auto min size as 0px when needed (#36430)

The initial value of `min-width` and `min-height` was 0px in CSS2.
However, CSS3 changed it to `auto`, so for backwards compatibility,
`getComputedStyle` needs to resolve it to 0px in a bunch of cases.

Testing: covered by WPT

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-04-14 03:31:48 -07:00 committed by GitHub
parent fbe1f0ef6d
commit f1417c4e75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 133 additions and 138 deletions

View file

@ -1,6 +0,0 @@
[inheritance.html]
[Property min-block-size has initial value 0px]
expected: FAIL
[Property min-inline-size has initial value 0px]
expected: FAIL

View file

@ -1,3 +0,0 @@
[min-block-size-computed.html]
[Property min-block-size value 'auto']
expected: FAIL

View file

@ -1,3 +0,0 @@
[min-inline-size-computed.html]
[Property min-inline-size value 'auto']
expected: FAIL