diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h index 2b89d927a5..80ac058a63 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.h +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h @@ -1145,7 +1145,7 @@ private: inline CSS::ValueID StyleValue::to_identifier() const { - if (is_identifier()) + if (type() == Type::Identifier) return static_cast(*this).id(); if (is_auto()) return CSS::ValueID::Auto;