LibWeb: Disallow none for min-width and min-height

This commit is contained in:
Andreas Kling 2024-10-27 18:26:28 +01:00 committed by Andreas Kling
commit 5a9d538acc
Notes: github-actions[bot] 2024-10-27 20:03:46 +00:00
3 changed files with 8 additions and 10 deletions

View file

@ -6,10 +6,10 @@ Rerun
Found 11 tests Found 11 tests
9 Pass 10 Pass
2 Fail 1 Fail
Details Details
Result Test Name MessageFail e.style['min-height'] = "none" should not set the property value assert_equals: expected "" but got "none" Result Test Name MessagePass e.style['min-height'] = "none" should not set the property value
Pass e.style['min-height'] = "complex" should not set the property value Pass e.style['min-height'] = "complex" should not set the property value
Pass e.style['min-height'] = "-10%" should not set the property value Pass e.style['min-height'] = "-10%" should not set the property value
Pass e.style['min-height'] = "-0.5em" should not set the property value Pass e.style['min-height'] = "-0.5em" should not set the property value

View file

@ -6,10 +6,10 @@ Rerun
Found 11 tests Found 11 tests
9 Pass 10 Pass
2 Fail 1 Fail
Details Details
Result Test Name MessageFail e.style['min-width'] = "none" should not set the property value assert_equals: expected "" but got "none" Result Test Name MessagePass e.style['min-width'] = "none" should not set the property value
Pass e.style['min-width'] = "complex" should not set the property value Pass e.style['min-width'] = "complex" should not set the property value
Pass e.style['min-width'] = "-10%" should not set the property value Pass e.style['min-width'] = "-10%" should not set the property value
Pass e.style['min-width'] = "-0.5em" should not set the property value Pass e.style['min-width'] = "-0.5em" should not set the property value

View file

@ -1947,8 +1947,7 @@
"percentage [0,∞]" "percentage [0,∞]"
], ],
"valid-identifiers": [ "valid-identifiers": [
"auto", "auto"
"none"
], ],
"percentages-resolve-to": "length", "percentages-resolve-to": "length",
"quirks": [ "quirks": [
@ -1974,8 +1973,7 @@
"auto", "auto",
"fit-content", "fit-content",
"max-content", "max-content",
"min-content", "min-content"
"none"
], ],
"percentages-resolve-to": "length", "percentages-resolve-to": "length",
"quirks": [ "quirks": [