mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 17:15:08 +00:00

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.
8 lines
No EOL
151 B
HTML
8 lines
No EOL
151 B
HTML
<style>
|
|
div {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: solid black;
|
|
border-width: calc(10px);
|
|
}
|
|
</style><div></div> |