#include "third_party/blink/renderer/core/css/css_to_length_conversion_data.h"
#include <optional>
#include "third_party/blink/renderer/core/css/anchor_evaluator.h"
#include "third_party/blink/renderer/core/css/css_primitive_value.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/html/html_div_element.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/geometry/calculation_value.h"
#include "third_party/blink/renderer/platform/geometry/length.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
namespace blink {
namespace {
class TestAnchorEvaluator : public AnchorEvaluator { … };
}
class CSSToLengthConversionDataTest : public PageTestBase { … };
TEST_F(CSSToLengthConversionDataTest, Normal) { … }
TEST_F(CSSToLengthConversionDataTest, Zoomed) { … }
TEST_F(CSSToLengthConversionDataTest, AdjustedZoom) { … }
TEST_F(CSSToLengthConversionDataTest, DifferentZoom) { … }
TEST_F(CSSToLengthConversionDataTest, Unzoomed) { … }
TEST_F(CSSToLengthConversionDataTest, StyleLessContainerUnitConversion) { … }
TEST_F(CSSToLengthConversionDataTest, SetLineHeightSize) { … }
TEST_F(CSSToLengthConversionDataTest, Flags) { … }
TEST_F(CSSToLengthConversionDataTest, ConversionWithoutPrimaryFont) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorFunction) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorFunctionFallback) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorSizeFunction) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorSizeFunctionFallback) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorWithinOtherFunction) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorFunctionPercentageFallback) { … }
TEST_F(CSSToLengthConversionDataTest,
AnchorFunctionPercentageFallbackNotTaken) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorFunctionFallbackNullEvaluator) { … }
TEST_F(CSSToLengthConversionDataTest, AnchorFunctionLengthPercentageFallback) { … }
TEST_F(CSSToLengthConversionDataTest, ContainerUnitsWithContainerName) { … }
}