.grid-item) [54.875,8 98.640625x17.46875]
TextPaintable (TextNode<#text>)
- PaintableWithLines (BlockContainer
.grid-item) [153.53125,8 638.46875x17.46875]
+ PaintableWithLines (BlockContainer
.grid-item) [153.515625,8 638.484375x17.46875]
TextPaintable (TextNode<#text>)
diff --git a/Userland/Libraries/LibWeb/CSS/Length.cpp b/Userland/Libraries/LibWeb/CSS/Length.cpp
index 279135019e..5b7e8e4075 100644
--- a/Userland/Libraries/LibWeb/CSS/Length.cpp
+++ b/Userland/Libraries/LibWeb/CSS/Length.cpp
@@ -59,15 +59,7 @@ Length Length::percentage_of(Percentage const& percentage) const
return *this;
}
- // HACK: We round to 3 decimal places to emulate what happens in browsers that used fixed point math.
- // FIXME: Remove this when converting CSSPixels to a fixed-point type.
- // https://github.com/SerenityOS/serenity/issues/18566
- auto value = percentage.as_fraction() * raw_value();
- value *= 1000;
- value = round(value);
- value /= 1000;
-
- return Length { value, m_type };
+ return Length { percentage.as_fraction() * raw_value(), m_type };
}
CSSPixels Length::font_relative_length_to_px(Length::FontMetrics const& font_metrics, Length::FontMetrics const& root_font_metrics) const