From 86ce1b64f0969682303d7e430d4987c78af23852 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sat, 17 Sep 2022 16:54:39 +0200 Subject: [PATCH] LibWeb: Fix bug in checking if GridTrackPlacement is auto-positioned This fixes something I thought I had already fixed everywhere, where previously there wasn't the possibility to have an Auto GridTrackPlacement and so the Auto "implementation" was simply checking if the position of the track was 0. --- Userland/Libraries/LibWeb/CSS/StyleValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp index 6d37f1d3fb..dcde804726 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp @@ -1389,7 +1389,7 @@ bool FrequencyStyleValue::equals(StyleValue const& other) const String GridTrackPlacementShorthandStyleValue::to_string() const { - if (m_end->grid_track_placement().position() == 0) + if (m_end->grid_track_placement().is_auto()) return String::formatted("{}", m_start->grid_track_placement().to_string()); return String::formatted("{} / {}", m_start->grid_track_placement().to_string(), m_end->grid_track_placement().to_string()); }