mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
LibWeb/CSS: Resolve percentages in NumericCalculationNode
Percentages should be resolved against the provided percentage basis instead of just returning the underlying value. Fixes https://github.com/SerenityOS/serenity/issues/22654
This commit is contained in:
parent
5e7e98cd3c
commit
3f52d6045a
3 changed files with 33 additions and 1 deletions
|
@ -0,0 +1,13 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
outline: 1px solid black;
|
||||
}
|
||||
body {
|
||||
width: 500px;
|
||||
}
|
||||
div {
|
||||
width: min(100px, 50%);
|
||||
height: 100px;
|
||||
background: orange;
|
||||
}
|
||||
</style><body><div>
|
Loading…
Add table
Add a link
Reference in a new issue