mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +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
4
Tests/LibWeb/Layout/expected/css-calc-border-width.txt
Normal file
4
Tests/LibWeb/Layout/expected/css-calc-border-width.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x120 children: not-inline
|
||||
BlockContainer <div> at (18,18) content-size 100x100 children: not-inline
|
Loading…
Add table
Add a link
Reference in a new issue