mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
fbe1f0ef6d
commit
f1417c4e75
7 changed files with 133 additions and 138 deletions
|
@ -1,7 +0,0 @@
|
|||
[flexbox_computedstyle_min-auto-size.html]
|
||||
[Computed min-width/min-height of specified auto inside display:none which would otherwise have been a flex item.]
|
||||
expected: FAIL
|
||||
|
||||
[Computed min-width/min-height of specified auto with display:none which would otherwise have been a flex item.]
|
||||
expected: FAIL
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[grid-item-min-auto-size-001.html]
|
||||
[Computed min-width/min-height of specified auto inside display:none which would otherwise have been a grid item.]
|
||||
expected: FAIL
|
||||
|
||||
[Computed min-width/min-height of specified auto with display:none which would otherwise have been a grid item.]
|
||||
expected: FAIL
|
|
@ -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
|
|
@ -1,3 +0,0 @@
|
|||
[min-block-size-computed.html]
|
||||
[Property min-block-size value 'auto']
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[min-inline-size-computed.html]
|
||||
[Property min-inline-size value 'auto']
|
||||
expected: FAIL
|
|
@ -1,21 +0,0 @@
|
|||
[getComputedStyle-resolved-min-size-auto.html]
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="block-box"]
|
||||
expected: FAIL
|
||||
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="inline-box"]
|
||||
expected: FAIL
|
||||
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="display-none"]
|
||||
expected: FAIL
|
||||
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="display-none-valid-aspect-ratio"]
|
||||
expected: FAIL
|
||||
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="display-none-subtree-valid-aspect-ratio"]
|
||||
expected: FAIL
|
||||
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="display-none-subtree-flex-item"]
|
||||
expected: FAIL
|
||||
|
||||
[Resolved value of min-width & min-height 'auto' keyword behaves as expected on element with id="display-none-subtree-grid-item"]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue