mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
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.
This commit is contained in:
parent
ce0de4b2b4
commit
b54cd17c1e
3 changed files with 15 additions and 5 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue