summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleValue.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-01-27 14:47:39 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-04 13:52:02 +0100
commitb54cd17c1ee7eb0a46af8feac66ca4180df8416d (patch)
tree63693efd5e0a7baae0e8d5e41880795ae538e032 /Userland/Libraries/LibWeb/CSS/StyleValue.h
parentce0de4b2b4cddf199011e4edf311580a117cc5cd (diff)
downloadserenity-b54cd17c1ee7eb0a46af8feac66ca4180df8416d.zip
LibWeb: Allow percentage tokens again when parsing calc()
I unintentionally broke this in my LengthPercentage PR, but it was not convenient to fix until now.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h
index 5c753ac4f2..be0c3bee44 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h
@@ -707,7 +707,7 @@ public:
};
struct CalcValue {
- Variant<float, CSS::Length, NonnullOwnPtr<CalcSum>> value;
+ Variant<float, Length, Percentage, NonnullOwnPtr<CalcSum>> value;
Optional<ResolvedType> resolved_type() const;
CalculationResult resolve(Layout::Node const*, Length const& percentage_basis) const;
};