mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibWeb: Resolve Lengths to CSSPixels
This commit is contained in:
parent
7d40e3eb0d
commit
8cc0bdf777
13 changed files with 44 additions and 44 deletions
|
@ -66,7 +66,7 @@ static ColorStopData resolve_color_stop_positions(auto const& color_stop_list, a
|
|||
// or transition hint before it.
|
||||
auto max_previous_color_stop_or_hint = resolved_color_stops[0].position;
|
||||
auto resolve_stop_position = [&](auto& position) {
|
||||
float value = resolve_position_to_float(position);
|
||||
float value = static_cast<float>(resolve_position_to_float(position));
|
||||
value = max(value, max_previous_color_stop_or_hint);
|
||||
max_previous_color_stop_or_hint = value;
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue