mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibWeb: Match math function values to properties in correct order
If a math function resolves to `<length>` or `<percentage>`, then it will by definition also resolve to `<length-percentage>`. (Same for any other basic types.) Since we were checking `<length-percentage>` first and then bailing if no given properties could accept that, math functions would always fail to match a property that just accepts a non `-percentage` type.
This commit is contained in:
parent
1837e94ba4
commit
06eb4a7557
3 changed files with 25 additions and 12 deletions
8
Tests/LibWeb/Layout/input/css-calc-border-width.html
Normal file
8
Tests/LibWeb/Layout/input/css-calc-border-width.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<style>
|
||||
div {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: solid black;
|
||||
border-width: calc(10px);
|
||||
}
|
||||
</style><div></div>
|
Loading…
Add table
Add a link
Reference in a new issue