#include "third_party/blink/renderer/core/style/computed_style.h"
#include "base/memory/values_equivalent.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/core/css/css_dynamic_range_limit_mix_value.h"
#include "third_party/blink/renderer/core/css/css_font_selector.h"
#include "third_party/blink/renderer/core/css/css_gradient_value.h"
#include "third_party/blink/renderer/core/css/css_identifier_value.h"
#include "third_party/blink/renderer/core/css/css_math_expression_node.h"
#include "third_party/blink/renderer/core/css/css_math_function_value.h"
#include "third_party/blink/renderer/core/css/css_numeric_literal_value.h"
#include "third_party/blink/renderer/core/css/css_repeat_style_value.h"
#include "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "third_party/blink/renderer/core/css/css_value_list.h"
#include "third_party/blink/renderer/core/css/parser/css_parser.h"
#include "third_party/blink/renderer/core/css/properties/css_property_ref.h"
#include "third_party/blink/renderer/core/css/properties/longhands.h"
#include "third_party/blink/renderer/core/css/property_registry.h"
#include "third_party/blink/renderer/core/css/resolver/style_adjuster.h"
#include "third_party/blink/renderer/core/css/resolver/style_builder_converter.h"
#include "third_party/blink/renderer/core/css/resolver/style_cascade.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver_state.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/layout/layout_object.h"
#include "third_party/blink/renderer/core/style/clip_path_operation.h"
#include "third_party/blink/renderer/core/style/computed_style_constants.h"
#include "third_party/blink/renderer/core/style/shape_clip_path_operation.h"
#include "third_party/blink/renderer/core/style/shape_value.h"
#include "third_party/blink/renderer/core/style/style_difference.h"
#include "third_party/blink/renderer/core/style/style_generated_image.h"
#include "third_party/blink/renderer/core/style/style_initial_data.h"
#include "third_party/blink/renderer/core/testing/color_scheme_helper.h"
#include "third_party/blink/renderer/core/testing/dummy_page_holder.h"
#include "third_party/blink/renderer/core/testing/null_execution_context.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/transforms/scale_transform_operation.h"
#include "ui/base/ui_base_features.h"
namespace blink {
class ComputedStyleTest : public testing::Test { … };
TEST_F(ComputedStyleTest, ShapeOutsideBoxEqual) { … }
TEST_F(ComputedStyleTest, ShapeOutsideCircleEqual) { … }
TEST_F(ComputedStyleTest, ClipPathEqual) { … }
TEST_F(ComputedStyleTest, ForcesStackingContext) { … }
TEST_F(ComputedStyleTest, Preserve3dForceStackingContext) { … }
TEST_F(ComputedStyleTest, LayoutContainmentStackingContext) { … }
TEST_F(ComputedStyleTest, IsStackingContextWithoutContainmentAfterClone) { … }
TEST_F(ComputedStyleTest, DerivedFlagCopyNonInherited) { … }
TEST_F(ComputedStyleTest, TrackedPseudoStyle) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesRespectsTransformAnimation) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsTransform) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesRespectsScaleAnimation) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesRespectsRotateAnimation) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesRespectsTranslateAnimation) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsOpacity) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsFilter) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsBackdropFilter) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsBackfaceVisibility) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsWillChange) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsUsedStylePreserve3D) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsOverflow) { … }
TEST_F(ComputedStyleTest,
UpdatePropertySpecificDifferencesCompositingReasonsContainsPaint) { … }
TEST_F(ComputedStyleTest, HasOutlineWithCurrentColor) { … }
TEST_F(ComputedStyleTest, BorderWidth) { … }
TEST_F(ComputedStyleTest, CursorList) { … }
#define UPDATE_STYLE(style_object, setter, value) …
TEST_F(ComputedStyleTest, BorderStyle) { … }
#define TEST_ANIMATION_FLAG(flag, inherited) …
#define TEST_ANIMATION_FLAG_NO_DIFF(flag) …
TEST_F(ComputedStyleTest, AnimationFlags) { … }
TEST_F(ComputedStyleTest, CustomPropertiesEqual_Values) { … }
TEST_F(ComputedStyleTest, CustomPropertiesEqual_Data) { … }
TEST_F(ComputedStyleTest, CustomPropertiesInheritance_FastPath) { … }
TEST_F(ComputedStyleTest, CustomPropertiesInheritance_StyleRecalc) { … }
TEST_F(ComputedStyleTest, ApplyColorSchemeLightOnDark) { … }
TEST_F(ComputedStyleTest, ApplyLightDarkColor) { … }
TEST_F(ComputedStyleTest, ApplyLightDarkBackgroundImage) { … }
TEST_F(ComputedStyleTest, StrokeWidthZoomAndCalc) { … }
TEST_F(ComputedStyleTest, InitialVariableNamesEmpty) { … }
TEST_F(ComputedStyleTest, InitialVariableNames) { … }
TEST_F(ComputedStyleTest, InheritedVariableNames) { … }
TEST_F(ComputedStyleTest, NonInheritedVariableNames) { … }
TEST_F(ComputedStyleTest, InheritedAndNonInheritedVariableNames) { … }
TEST_F(ComputedStyleTest, InitialAndInheritedAndNonInheritedVariableNames) { … }
TEST_F(ComputedStyleTest, GetVariableNamesCount_Invalidation) { … }
TEST_F(ComputedStyleTest, GetVariableNames_Invalidation) { … }
TEST_F(ComputedStyleTest, GetVariableNamesWithInitialData_Invalidation) { … }
TEST_F(ComputedStyleTest, BorderWidthZoom) { … }
TEST_F(ComputedStyleTest, BorderWidthConversion) { … }
TEST_F(ComputedStyleTest, BorderWidthConversionWithZoom) { … }
TEST_F(ComputedStyleTest,
TextDecorationEqualDoesNotRequireRecomputeInkOverflow) { … }
TEST_F(ComputedStyleTest, TextDecorationNotEqualRequiresRecomputeInkOverflow) { … }
TEST_F(ComputedStyleTest, ClonedStyleAnimationsAreIndependent) { … }
TEST_F(ComputedStyleTest, ClonedStyleTransitionsAreIndependent) { … }
TEST_F(ComputedStyleTest, ApplyInitialAnimationNameAndTransitionProperty) { … }
#define TEST_STYLE_VALUE_NO_DIFF(field_name) …
#define TEST_STYLE_REFCOUNTED_VALUE_NO_DIFF(type, field_name) …
TEST_F(ComputedStyleTest, SvgStrokeStyleShouldCompareValue) { … }
TEST_F(ComputedStyleTest, SvgMiscStyleShouldCompareValue) { … }
TEST_F(ComputedStyleTest, ShouldApplyAnyContainment) { … }
#if DCHECK_IS_ON()
TEST_F(ComputedStyleTest, DebugDiffFields) { … }
TEST_F(ComputedStyleTest, DerivedDebugDiff) { … }
TEST_F(ComputedStyleTest, DerivedDebugDiffLazy) { … }
#endif
TEST_F(ComputedStyleTest, LogicalScrollPaddingUtils) { … }
TEST_F(ComputedStyleTest, BasicBuilder) { … }
TEST_F(ComputedStyleTest, MoveBuilder) { … }
TEST_F(ComputedStyleTest, MoveAssignBuilder) { … }
TEST_F(ComputedStyleTest, ScrollTimelineNameNoDiff) { … }
TEST_F(ComputedStyleTest, ScrollTimelineAxisNoDiff) { … }
TEST_F(ComputedStyleTest, ViewTimelineNameNoDiff) { … }
TEST_F(ComputedStyleTest, ViewTimelineAxisNoDiff) { … }
TEST_F(ComputedStyleTest, ViewTimelineInsetNoDiff) { … }
TEST_F(ComputedStyleTest, ContainerNameNoDiff) { … }
TEST_F(ComputedStyleTest, BackgroundRepeat) { … }
TEST_F(ComputedStyleTest, MaskRepeat) { … }
TEST_F(ComputedStyleTest, MaskMode) { … }
TEST_F(ComputedStyleTest, DynamicRangeLimitMixStandardToConstrainedHigh) { … }
TEST_F(ComputedStyleTest, DynamicRangeLimitMixStandardToHigh) { … }
TEST_F(ComputedStyleTest, DynamicRangeLimitMixConstrainedHighToHigh) { … }
TEST_F(ComputedStyleTest, DynamicRangeLimitMixAllThree) { … }
TEST_F(ComputedStyleTest, UseCountInsideListMarkerPositionQuirk) { … }
TEST_F(ComputedStyleTest, ZoomInheritance) { … }
TEST_F(ComputedStyleTest, ColorSchemeFlagsIsNormal) { … }
TEST_F(ComputedStyleTest, ColorSchemeFlagsIsNormal_WithMeta) { … }
}