summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/CSS/Parser/CSSParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibWeb/CSS/Parser/CSSParser.cpp')
-rw-r--r--Libraries/LibWeb/CSS/Parser/CSSParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibWeb/CSS/Parser/CSSParser.cpp b/Libraries/LibWeb/CSS/Parser/CSSParser.cpp
index a32965f812..e5c024d768 100644
--- a/Libraries/LibWeb/CSS/Parser/CSSParser.cpp
+++ b/Libraries/LibWeb/CSS/Parser/CSSParser.cpp
@@ -284,6 +284,9 @@ static CSS::Length parse_length(const CSS::ParsingContext& context, const String
} else if (view.ends_with("pt", CaseSensitivity::CaseInsensitive)) {
type = CSS::Length::Type::Pt;
value = try_parse_float(view.substring_view(0, view.length() - 2));
+ } else if (view.ends_with("pc", CaseSensitivity::CaseInsensitive)) {
+ type = CSS::Length::Type::Pc;
+ value = try_parse_float(view.substring_view(0, view.length() - 2));
} else if (view.ends_with("mm", CaseSensitivity::CaseInsensitive)) {
type = CSS::Length::Type::Mm;
value = try_parse_float(view.substring_view(0, view.length() - 2));