forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
1593ff2
commit ad41b08
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rgb(30, 31, 34) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!doctype html><script src="../include.js"></script><style> | ||
body { | ||
--saturation-factor: 1; | ||
background: hsl(225, calc(var(--saturation-factor, 1) * 6.3%), 12.5%); | ||
} | ||
</style><body></body><script> | ||
test(() => { | ||
const bodyStyle = window.getComputedStyle(document.body); | ||
println(bodyStyle.backgroundColor); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters