mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-04 07:09:41 +00:00
This struct will be used within CSSStyleValue.h in a future commit and having it in CalculatedStyleValue.h causes a dependency loop.
21 lines
458 B
C++
21 lines
458 B
C++
/*
|
|
* Copyright (c) 2025, Callum Law <callumlaw1709@outlook.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/CSS/Angle.h>
|
|
#include <LibWeb/CSS/Frequency.h>
|
|
#include <LibWeb/CSS/Length.h>
|
|
#include <LibWeb/CSS/Time.h>
|
|
|
|
namespace Web::CSS {
|
|
|
|
struct CalculationResolutionContext {
|
|
Variant<Empty, Angle, Frequency, Length, Time> percentage_basis {};
|
|
Optional<Length::ResolutionContext> length_resolution_context;
|
|
};
|
|
|
|
}
|