1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 17:15:08 +00:00
serenity/Tests/LibWeb/Layout/input/css-calc-border-width.html
Sam Atkins 06eb4a7557 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.
2023-07-30 14:18:13 +02:00

8 lines
No EOL
151 B
HTML

<style>
div {
width: 100px;
height: 100px;
border: solid black;
border-width: calc(10px);
}
</style><div></div>