mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 03:26:10 +00:00
LibWeb/CSS: Resolve NumericCalculationNode to percentage when requested
When the caller of NumericCalculationNode::resolve() does not provide a percentage_basis, it expects the method to return a raw percentage value. Fixes crashing on https://discord.com/login
This commit is contained in:
parent
1593ff2d4c
commit
225ed58f7e
Notes:
sideshowbarker
2024-07-17 08:55:54 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 225ed58f7e
Pull-request: https://github.com/SerenityOS/serenity/pull/22697
3 changed files with 15 additions and 1 deletions
1
Tests/LibWeb/Text/expected/css/css-hsl-with-calc.txt
Normal file
1
Tests/LibWeb/Text/expected/css/css-hsl-with-calc.txt
Normal file
|
@ -0,0 +1 @@
|
|||
rgb(30, 31, 34)
|
Loading…
Add table
Add a link
Reference in a new issue