2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								/*
							 | 
						
					
						
							
								
									
										
										
										
											2023-02-20 18:56:08 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								 * Copyright (c) 2020-2023, Andreas Kling <kling@serenityos.org>
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								 *
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-22 01:24:48 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								 * SPDX-License-Identifier: BSD-2-Clause
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								 */
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#pragma once
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#include <AK/Optional.h>
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-15 08:31:19 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/BackdropFilter.h>
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 17:13:37 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/CalculatedOr.h>
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-31 18:47:09 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/Clip.h>
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-25 14:11:11 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/Display.h>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/GridTrackPlacement.h>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/GridTrackSize.h>
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 17:45:42 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/LengthBox.h>
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 17:13:37 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/PercentageOr.h>
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-25 15:48:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/Size.h>
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-24 16:42:50 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/StyleValues/AbstractImageStyleValue.h>
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-24 17:45:25 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/StyleValues/ShadowStyleValue.h>
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-25 14:11:11 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#include <LibWeb/CSS/TransformFunctions.h>
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 10:34:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								namespace Web::CSS {
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 16:37:44 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								class InitialValues {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								public:
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-08 12:41:42 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static float font_size() { return 16; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-21 16:24:12 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static int font_weight() { return 400; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 14:54:21 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::FontVariant font_variant() { return CSS::FontVariant::Normal; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-26 15:08:42 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Float float_() { return CSS::Float::None; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-06 01:45:51 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Clear clear() { return CSS::Clear::None; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-31 18:47:09 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Clip clip() { return CSS::Clip::make_auto(); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-21 17:41:00 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Cursor cursor() { return CSS::Cursor::Auto; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 16:37:44 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::WhiteSpace white_space() { return CSS::WhiteSpace::Normal; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-14 18:38:02 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::TextAlign text_align() { return CSS::TextAlign::Left; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-12 19:31:32 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::TextJustify text_justify() { return CSS::TextJustify::Auto; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-14 18:47:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Position position() { return CSS::Position::Static; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 13:36:27 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::TextDecorationLine text_decoration_line() { return CSS::TextDecorationLine::None; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-04 22:00:09 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Length text_decoration_thickness() { return Length::make_auto(); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-20 20:27:55 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::TextDecorationStyle text_decoration_style() { return CSS::TextDecorationStyle::Solid; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 14:15:49 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::TextTransform text_transform() { return CSS::TextTransform::None; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-15 16:42:28 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::LengthPercentage text_indent() { return CSS::Length::make_px(0); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-06 17:57:44 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Display display() { return CSS::Display { CSS::Display::Outside::Inline, CSS::Display::Inside::Flow }; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 16:13:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static Color color() { return Color::Black; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-19 18:51:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static Color stop_color() { return Color::Black; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-15 08:31:19 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::BackdropFilter backdrop_filter() { return BackdropFilter::make_none(); }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 16:13:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static Color background_color() { return Color::Transparent; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 16:50:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::ListStyleType list_style_type() { return CSS::ListStyleType::Disc; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 15:42:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Visibility visibility() { return CSS::Visibility::Visible; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-18 17:41:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::FlexDirection flex_direction() { return CSS::FlexDirection::Row; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 12:11:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::FlexWrap flex_wrap() { return CSS::FlexWrap::Nowrap; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-18 12:21:27 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::ImageRendering image_rendering() { return CSS::ImageRendering::Auto; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-16 18:38:26 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::JustifyContent justify_content() { return CSS::JustifyContent::FlexStart; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 13:50:06 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::AlignContent align_content() { return CSS::AlignContent::Stretch; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 18:49:16 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::AlignItems align_items() { return CSS::AlignItems::Stretch; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-11 23:52:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::AlignSelf align_self() { return CSS::AlignSelf::Auto; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-22 16:05:11 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Appearance appearance() { return CSS::Appearance::Auto; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-22 15:20:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Overflow overflow() { return CSS::Overflow::Visible; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 16:55:02 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::BoxSizing box_sizing() { return CSS::BoxSizing::ContentBox; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 19:47:13 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::PointerEvents pointer_events() { return CSS::PointerEvents::Auto; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:22:08 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static float flex_grow() { return 0.0f; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static float flex_shrink() { return 1.0f; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-31 22:11:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static int order() { return 0; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:27:40 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static float opacity() { return 1.0f; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static float fill_opacity() { return 1.0f; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static float stroke_opacity() { return 1.0f; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static float stop_opacity() { return 1.0f; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-14 20:49:06 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Length border_radius() { return Length::make_px(0); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-26 01:34:07 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static Variant<CSS::VerticalAlign, CSS::LengthPercentage> vertical_align() { return CSS::VerticalAlign::Baseline; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-06 20:17:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::LengthBox inset() { return { CSS::Length::make_auto(), CSS::Length::make_auto(), CSS::Length::make_auto(), CSS::Length::make_auto() }; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::LengthBox margin() { return { CSS::Length::make_px(0), CSS::Length::make_px(0), CSS::Length::make_px(0), CSS::Length::make_px(0) }; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::LengthBox padding() { return { CSS::Length::make_px(0), CSS::Length::make_px(0), CSS::Length::make_px(0), CSS::Length::make_px(0) }; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-25 15:48:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size width() { return CSS::Size::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size min_width() { return CSS::Size::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size max_width() { return CSS::Size::make_none(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size height() { return CSS::Size::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size min_height() { return CSS::Size::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size max_height() { return CSS::Size::make_none(); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-30 13:27:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::GridTrackSizeList grid_template_columns() { return CSS::GridTrackSizeList::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::GridTrackSizeList grid_template_rows() { return CSS::GridTrackSizeList::make_auto(); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-23 19:58:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::GridTrackPlacement grid_column_end() { return CSS::GridTrackPlacement::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::GridTrackPlacement grid_column_start() { return CSS::GridTrackPlacement::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::GridTrackPlacement grid_row_end() { return CSS::GridTrackPlacement::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::GridTrackPlacement grid_row_start() { return CSS::GridTrackPlacement::make_auto(); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-11-06 12:42:22 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size column_gap() { return CSS::Size::make_auto(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    static CSS::Size row_gap() { return CSS::Size::make_auto(); }
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-02 23:01:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static CSS::BorderCollapse border_collapse() { return CSS::BorderCollapse::Separate; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-16 18:17:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    static Vector<Vector<String>> grid_template_areas() { return {}; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 16:37:44 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 14:11:28 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								enum class BackgroundSize {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Contain,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Cover,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    LengthPercentage,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-23 01:31:17 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// https://svgwg.org/svg2-draft/painting.html#SpecifyingPaint
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								class SVGPaint {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								public:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    SVGPaint(Color color)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        : m_value(color)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    SVGPaint(AK::URL const& url)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        : m_value(url)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    bool is_color() const { return m_value.has<Color>(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    bool is_url() const { return m_value.has<AK::URL>(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Color as_color() const { return m_value.get<Color>(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    AK::URL const& as_url() const { return m_value.get<AK::URL>(); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								private:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Variant<AK::URL, Color> m_value;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 12:11:01 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct BackgroundLayerData {
							 | 
						
					
						
							
								
									
										
										
										
											2023-02-20 18:56:08 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    RefPtr<CSS::AbstractImageStyleValue const> background_image { nullptr };
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 16:30:21 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::BackgroundAttachment attachment { CSS::BackgroundAttachment::Scroll };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::BackgroundBox origin { CSS::BackgroundBox::PaddingBox };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::BackgroundBox clip { CSS::BackgroundBox::BorderBox };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::PositionEdge position_edge_x { CSS::PositionEdge::Left };
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-19 11:20:40 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage position_offset_x { CSS::Length::make_px(0) };
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 16:30:21 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::PositionEdge position_edge_y { CSS::PositionEdge::Top };
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-19 11:20:40 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage position_offset_y { CSS::Length::make_px(0) };
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 16:30:21 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::BackgroundSize size_type { CSS::BackgroundSize::LengthPercentage };
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-16 20:24:35 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage size_x { CSS::Length::make_auto() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage size_y { CSS::Length::make_auto() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 16:30:21 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Repeat repeat_x { CSS::Repeat::Repeat };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Repeat repeat_y { CSS::Repeat::Repeat };
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 12:11:01 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 19:41:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct BorderData {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								public:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Color color { Color::Transparent };
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-04 16:11:55 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::LineStyle line_style { CSS::LineStyle::None };
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-24 10:50:57 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    double width { 0 };
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-27 16:32:08 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    bool operator==(BorderData const&) const = default;
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 19:41:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 15:33:37 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								using TransformValue = Variant<CSS::AngleOrCalculated, CSS::LengthPercentage, float>;
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-14 17:45:23 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-18 17:20:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct Transformation {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::TransformFunction function;
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-14 17:45:23 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<TransformValue> values;
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-18 17:20:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 19:38:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct TransformOrigin {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage x { Percentage(50) };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage y { Percentage(50) };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 14:08:44 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								enum class FlexBasis {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Content,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    LengthPercentage,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Auto,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 14:23:43 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct FlexBasisData {
							 | 
						
					
						
							
								
									
										
										
										
											2021-08-06 22:00:25 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::FlexBasis type { CSS::FlexBasis::Auto };
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-19 11:52:01 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Optional<CSS::LengthPercentage> length_percentage;
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 14:23:43 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 16:55:22 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct ShadowData {
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-08 15:33:27 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Color color {};
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-18 14:47:15 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Length offset_x { Length::make_px(0) };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Length offset_y { Length::make_px(0) };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Length blur_radius { Length::make_px(0) };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Length spread_distance { Length::make_px(0) };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 16:55:22 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::ShadowPlacement placement { CSS::ShadowPlacement::Outer };
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-23 21:22:31 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-24 16:52:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct ContentData {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    enum class Type {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        Normal,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        None,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        String,
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    } type { Type::Normal };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    // FIXME: Data is a list of identifiers, strings and image values.
							 | 
						
					
						
							
								
									
										
										
										
											2023-02-14 16:05:40 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    String data {};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    String alt_text {};
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-24 16:52:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-12 15:05:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								struct BorderRadiusData {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage horizontal_radius { InitialValues::border_radius() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage vertical_radius { InitialValues::border_radius() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 14:48:34 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// FIXME: Find a better place for this helper.
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 00:41:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								inline Gfx::Painter::ScalingMode to_gfx_scaling_mode(CSS::ImageRendering css_value, Gfx::IntRect source, Gfx::IntRect target)
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 14:48:34 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								{
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    switch (css_value) {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    case CSS::ImageRendering::Auto:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    case CSS::ImageRendering::HighQuality:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    case CSS::ImageRendering::Smooth:
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 00:41:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        if (target.width() < source.width() || target.height() < source.height())
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            return Gfx::Painter::ScalingMode::BoxSampling;
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-30 14:48:34 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        return Gfx::Painter::ScalingMode::BilinearBlend;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    case CSS::ImageRendering::CrispEdges:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        return Gfx::Painter::ScalingMode::NearestNeighbor;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    case CSS::ImageRendering::Pixelated:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        return Gfx::Painter::ScalingMode::SmoothPixels;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    VERIFY_NOT_REACHED();
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 10:34:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								class ComputedValues {
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								public:
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Float float_() const { return m_noninherited.float_; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Clear clear() const { return m_noninherited.clear; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-31 18:47:09 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Clip clip() const { return m_noninherited.clip; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-21 17:41:00 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Cursor cursor() const { return m_inherited.cursor; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-24 16:52:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::ContentData content() const { return m_noninherited.content; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 19:47:13 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::PointerEvents pointer_events() const { return m_inherited.pointer_events; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-07 14:41:50 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Display display() const { return m_noninherited.display; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-17 12:06:29 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Optional<int> const& z_index() const { return m_noninherited.z_index; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::TextAlign text_align() const { return m_inherited.text_align; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-12 19:31:32 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::TextJustify text_justify() const { return m_inherited.text_justify; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-15 16:42:28 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage const& text_indent() const { return m_inherited.text_indent; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-04 18:10:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<CSS::TextDecorationLine> const& text_decoration_line() const { return m_noninherited.text_decoration_line; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthPercentage const& text_decoration_thickness() const { return m_noninherited.text_decoration_thickness; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-20 20:27:55 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::TextDecorationStyle text_decoration_style() const { return m_noninherited.text_decoration_style; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-06 00:25:42 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Color text_decoration_color() const { return m_noninherited.text_decoration_color; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::TextTransform text_transform() const { return m_inherited.text_transform; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 21:16:36 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<ShadowData> const& text_shadow() const { return m_noninherited.text_shadow; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Position position() const { return m_noninherited.position; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::WhiteSpace white_space() const { return m_inherited.white_space; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-18 17:41:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::FlexDirection flex_direction() const { return m_noninherited.flex_direction; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 12:11:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::FlexWrap flex_wrap() const { return m_noninherited.flex_wrap; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-17 12:06:29 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    FlexBasisData const& flex_basis() const { return m_noninherited.flex_basis; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:22:08 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    float flex_grow() const { return m_noninherited.flex_grow; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    float flex_shrink() const { return m_noninherited.flex_shrink; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-31 22:11:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    int order() const { return m_noninherited.order; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-18 20:49:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Optional<Color> accent_color() const { return m_inherited.accent_color; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 13:50:06 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::AlignContent align_content() const { return m_noninherited.align_content; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-15 18:27:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::AlignItems align_items() const { return m_noninherited.align_items; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-11 23:52:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::AlignSelf align_self() const { return m_noninherited.align_self; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-22 16:05:11 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Appearance appearance() const { return m_noninherited.appearance; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:27:40 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    float opacity() const { return m_noninherited.opacity; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 15:42:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Visibility visibility() const { return m_inherited.visibility; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-18 12:21:27 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::ImageRendering image_rendering() const { return m_inherited.image_rendering; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-16 18:38:26 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::JustifyContent justify_content() const { return m_noninherited.justify_content; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-15 08:31:19 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::BackdropFilter const& backdrop_filter() const { return m_noninherited.backdrop_filter; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 16:55:22 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<ShadowData> const& box_shadow() const { return m_noninherited.box_shadow; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 16:55:02 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::BoxSizing box_sizing() const { return m_noninherited.box_sizing; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-25 15:48:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& width() const { return m_noninherited.width; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& min_width() const { return m_noninherited.min_width; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& max_width() const { return m_noninherited.max_width; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& height() const { return m_noninherited.height; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& min_height() const { return m_noninherited.min_height; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& max_height() const { return m_noninherited.max_height; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-26 01:34:07 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Variant<CSS::VerticalAlign, CSS::LengthPercentage> const& vertical_align() const { return m_noninherited.vertical_align; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-21 18:08:41 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackSizeList const& grid_auto_columns() const { return m_noninherited.grid_auto_columns; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackSizeList const& grid_auto_rows() const { return m_noninherited.grid_auto_rows; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-30 13:27:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackSizeList const& grid_template_columns() const { return m_noninherited.grid_template_columns; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackSizeList const& grid_template_rows() const { return m_noninherited.grid_template_rows; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-23 19:58:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackPlacement const& grid_column_end() const { return m_noninherited.grid_column_end; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackPlacement const& grid_column_start() const { return m_noninherited.grid_column_start; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackPlacement const& grid_row_end() const { return m_noninherited.grid_row_end; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::GridTrackPlacement const& grid_row_start() const { return m_noninherited.grid_row_start; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-11-06 12:42:22 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& column_gap() const { return m_noninherited.column_gap; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Size const& row_gap() const { return m_noninherited.row_gap; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-02 23:01:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::BorderCollapse border_collapse() const { return m_noninherited.border_collapse; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-16 18:17:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<Vector<String>> const& grid_template_areas() const { return m_noninherited.grid_template_areas; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-27 15:42:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::LengthBox const& inset() const { return m_noninherited.inset; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    const CSS::LengthBox& margin() const { return m_noninherited.margin; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    const CSS::LengthBox& padding() const { return m_noninherited.padding; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 17:45:42 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-01 20:58:27 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    BorderData const& border_left() const { return m_noninherited.border_left; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    BorderData const& border_top() const { return m_noninherited.border_top; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    BorderData const& border_right() const { return m_noninherited.border_right; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    BorderData const& border_bottom() const { return m_noninherited.border_bottom; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 19:41:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-12 15:05:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    const CSS::BorderRadiusData& border_bottom_left_radius() const { return m_noninherited.border_bottom_left_radius; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    const CSS::BorderRadiusData& border_bottom_right_radius() const { return m_noninherited.border_bottom_right_radius; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    const CSS::BorderRadiusData& border_top_left_radius() const { return m_noninherited.border_top_left_radius; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    const CSS::BorderRadiusData& border_top_right_radius() const { return m_noninherited.border_top_right_radius; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-14 22:31:03 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-22 15:20:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::Overflow overflow_x() const { return m_noninherited.overflow_x; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::Overflow overflow_y() const { return m_noninherited.overflow_y; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Color color() const { return m_inherited.color; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Color background_color() const { return m_noninherited.background_color; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 12:11:01 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<BackgroundLayerData> const& background_layers() const { return m_noninherited.background_layers; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 16:13:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::ListStyleType list_style_type() const { return m_inherited.list_style_type; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-15 16:50:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-23 01:31:17 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Optional<SVGPaint> const& fill() const { return m_inherited.fill; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    Optional<SVGPaint> const& stroke() const { return m_inherited.stroke; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    float fill_opacity() const { return m_inherited.fill_opacity; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    float stroke_opacity() const { return m_inherited.stroke_opacity; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-14 16:52:14 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Optional<LengthPercentage> const& stroke_width() const { return m_inherited.stroke_width; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-19 18:51:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Color stop_color() const { return m_noninherited.stop_color; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    float stop_opacity() const { return m_noninherited.stop_opacity; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-16 12:28:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-04 18:10:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Vector<CSS::Transformation> const& transformations() const { return m_noninherited.transformations; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    CSS::TransformOrigin const& transform_origin() const { return m_noninherited.transform_origin; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-18 17:20:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-21 16:24:12 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    float font_size() const { return m_inherited.font_size; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    int font_weight() const { return m_inherited.font_weight; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 14:54:21 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    CSS::FontVariant font_variant() const { return m_inherited.font_variant; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-21 16:24:12 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 14:10:53 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ComputedValues clone_inherited_values() const
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        ComputedValues clone;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        clone.m_inherited = m_inherited;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        return clone;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								protected:
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    struct {
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-21 16:24:12 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        float font_size { InitialValues::font_size() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        int font_weight { InitialValues::font_weight() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 14:54:21 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::FontVariant font_variant { InitialValues::font_variant() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Color color { InitialValues::color() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-18 20:49:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Optional<Color> accent_color {};
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-21 17:41:00 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Cursor cursor { InitialValues::cursor() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-18 12:21:27 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::ImageRendering image_rendering { InitialValues::image_rendering() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 19:47:13 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::PointerEvents pointer_events { InitialValues::pointer_events() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::TextAlign text_align { InitialValues::text_align() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-12 19:31:32 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::TextJustify text_justify { InitialValues::text_justify() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::TextTransform text_transform { InitialValues::text_transform() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-15 16:42:28 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::LengthPercentage text_indent { InitialValues::text_indent() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::WhiteSpace white_space { InitialValues::white_space() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::ListStyleType list_style_type { InitialValues::list_style_type() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 15:42:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Visibility visibility { InitialValues::visibility() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-16 12:28:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-23 01:31:17 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Optional<SVGPaint> fill;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        Optional<SVGPaint> stroke;
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        float fill_opacity { InitialValues::fill_opacity() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        float stroke_opacity { InitialValues::stroke_opacity() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-14 16:52:14 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Optional<LengthPercentage> stroke_width;
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    } m_inherited;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    struct {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Float float_ { InitialValues::float_() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Clear clear { InitialValues::clear() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-31 18:47:09 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Clip clip { InitialValues::clip() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-07 14:41:50 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Display display { InitialValues::display() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Optional<int> z_index;
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-14 16:22:35 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        // FIXME: Store this as flags in a u8.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        Vector<CSS::TextDecorationLine> text_decoration_line { InitialValues::text_decoration_line() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-06 19:48:09 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::LengthPercentage text_decoration_thickness { InitialValues::text_decoration_thickness() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-20 20:27:55 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::TextDecorationStyle text_decoration_style { InitialValues::text_decoration_style() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-06 00:25:42 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Color text_decoration_color { InitialValues::color() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 21:16:36 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Vector<ShadowData> text_shadow {};
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Position position { InitialValues::position() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-25 15:48:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Size width { InitialValues::width() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Size min_width { InitialValues::min_width() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Size max_width { InitialValues::max_width() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Size height { InitialValues::height() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Size min_height { InitialValues::min_height() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Size max_height { InitialValues::max_height() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-06 20:17:12 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::LengthBox inset { InitialValues::inset() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::LengthBox margin { InitialValues::margin() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::LengthBox padding { InitialValues::padding() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-15 08:31:19 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::BackdropFilter backdrop_filter { InitialValues::backdrop_filter() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        BorderData border_left;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        BorderData border_top;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        BorderData border_right;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        BorderData border_bottom;
							 | 
						
					
						
							
								
									
										
										
										
											2022-06-12 15:05:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        BorderRadiusData border_bottom_left_radius;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        BorderRadiusData border_bottom_right_radius;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        BorderRadiusData border_top_left_radius;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        BorderRadiusData border_top_right_radius;
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Color background_color { InitialValues::background_color() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 12:11:01 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Vector<BackgroundLayerData> background_layers;
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-18 17:41:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::FlexDirection flex_direction { InitialValues::flex_direction() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 12:11:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::FlexWrap flex_wrap { InitialValues::flex_wrap() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 14:23:43 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::FlexBasisData flex_basis {};
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:22:08 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        float flex_grow { InitialValues::flex_grow() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        float flex_shrink { InitialValues::flex_shrink() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-31 22:11:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        int order { InitialValues::order() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 13:50:06 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::AlignContent align_content { InitialValues::align_content() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-16 21:36:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::AlignItems align_items { InitialValues::align_items() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-11 23:52:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::AlignSelf align_self { InitialValues::align_self() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-22 16:05:11 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Appearance appearance { InitialValues::appearance() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-16 18:38:26 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::JustifyContent justify_content { InitialValues::justify_content() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-22 15:20:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Overflow overflow_x { InitialValues::overflow() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Overflow overflow_y { InitialValues::overflow() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:27:40 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        float opacity { InitialValues::opacity() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 16:55:22 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Vector<ShadowData> box_shadow {};
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-18 17:20:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Vector<CSS::Transformation> transformations {};
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 19:38:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::TransformOrigin transform_origin {};
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 16:55:02 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::BoxSizing box_sizing { InitialValues::box_sizing() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-24 16:52:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::ContentData content;
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-26 01:34:07 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Variant<CSS::VerticalAlign, CSS::LengthPercentage> vertical_align { InitialValues::vertical_align() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-21 18:08:41 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackSizeList grid_auto_columns;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackSizeList grid_auto_rows;
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-30 13:27:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackSizeList grid_template_columns;
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackSizeList grid_template_rows;
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-23 19:58:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackPlacement grid_column_end { InitialValues::grid_column_end() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackPlacement grid_column_start { InitialValues::grid_column_start() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackPlacement grid_row_end { InitialValues::grid_row_end() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::GridTrackPlacement grid_row_start { InitialValues::grid_row_start() };
							 | 
						
					
						
							
								
									
										
										
										
											2022-11-06 12:42:22 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::Size column_gap { InitialValues::column_gap() };
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        CSS::Size row_gap { InitialValues::row_gap() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-02 23:01:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        CSS::BorderCollapse border_collapse { InitialValues::border_collapse() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-16 18:17:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Vector<Vector<String>> grid_template_areas { InitialValues::grid_template_areas() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-19 18:51:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        Gfx::Color stop_color { InitialValues::stop_color() };
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        float stop_opacity { InitialValues::stop_opacity() };
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    } m_noninherited;
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 10:34:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								class ImmutableComputedValues final : public ComputedValues {
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 10:34:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								class MutableComputedValues final : public ComputedValues {
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								public:
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-21 16:24:12 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_font_size(float font_size) { m_inherited.font_size = font_size; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_font_weight(int font_weight) { m_inherited.font_weight = font_weight; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 14:54:21 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_font_variant(CSS::FontVariant font_variant) { m_inherited.font_variant = font_variant; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-12-06 19:43:46 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_color(Color color) { m_inherited.color = color; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-31 18:47:09 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_clip(CSS::Clip const& clip) { m_noninherited.clip = clip; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-24 16:52:58 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_content(ContentData const& content) { m_noninherited.content = content; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-21 17:41:00 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_cursor(CSS::Cursor cursor) { m_inherited.cursor = cursor; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-02-18 12:21:27 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_image_rendering(CSS::ImageRendering value) { m_inherited.image_rendering = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 19:47:13 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_pointer_events(CSS::PointerEvents value) { m_inherited.pointer_events = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-12-06 19:43:46 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_background_color(Color color) { m_noninherited.background_color = color; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-12 12:11:01 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_background_layers(Vector<BackgroundLayerData>&& layers) { m_noninherited.background_layers = move(layers); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_float(CSS::Float value) { m_noninherited.float_ = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_clear(CSS::Clear value) { m_noninherited.clear = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_z_index(Optional<int> value) { m_noninherited.z_index = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_text_align(CSS::TextAlign text_align) { m_inherited.text_align = text_align; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-12 19:31:32 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_justify(CSS::TextJustify text_justify) { m_inherited.text_justify = text_justify; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-04-14 16:22:35 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_decoration_line(Vector<CSS::TextDecorationLine> value) { m_noninherited.text_decoration_line = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-04 18:10:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_decoration_thickness(CSS::LengthPercentage value) { m_noninherited.text_decoration_thickness = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-20 20:27:55 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_decoration_style(CSS::TextDecorationStyle value) { m_noninherited.text_decoration_style = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-06 00:25:42 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_decoration_color(Color value) { m_noninherited.text_decoration_color = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_transform(CSS::TextTransform value) { m_inherited.text_transform = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 21:16:36 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_shadow(Vector<ShadowData>&& value) { m_noninherited.text_shadow = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-15 16:42:28 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_text_indent(CSS::LengthPercentage value) { m_inherited.text_indent = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_position(CSS::Position position) { m_noninherited.position = position; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_white_space(CSS::WhiteSpace value) { m_inherited.white_space = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-25 15:48:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_width(CSS::Size const& width) { m_noninherited.width = width; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_min_width(CSS::Size const& width) { m_noninherited.min_width = width; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_max_width(CSS::Size const& width) { m_noninherited.max_width = width; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_height(CSS::Size const& height) { m_noninherited.height = height; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_min_height(CSS::Size const& height) { m_noninherited.min_height = height; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_max_height(CSS::Size const& height) { m_noninherited.max_height = height; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-27 15:42:23 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_inset(CSS::LengthBox const& inset) { m_noninherited.inset = inset; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_margin(const CSS::LengthBox& margin) { m_noninherited.margin = margin; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_padding(const CSS::LengthBox& padding) { m_noninherited.padding = padding; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-02-22 15:20:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_overflow_x(CSS::Overflow value) { m_noninherited.overflow_x = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_overflow_y(CSS::Overflow value) { m_noninherited.overflow_y = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_list_style_type(CSS::ListStyleType value) { m_inherited.list_style_type = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-07 14:41:50 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_display(CSS::Display value) { m_noninherited.display = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-09-15 08:31:19 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_backdrop_filter(CSS::BackdropFilter backdrop_filter) { m_noninherited.backdrop_filter = move(backdrop_filter); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-04 18:10:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_border_bottom_left_radius(CSS::BorderRadiusData value) { m_noninherited.border_bottom_left_radius = move(value); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_border_bottom_right_radius(CSS::BorderRadiusData value) { m_noninherited.border_bottom_right_radius = move(value); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_border_top_left_radius(CSS::BorderRadiusData value) { m_noninherited.border_top_left_radius = move(value); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_border_top_right_radius(CSS::BorderRadiusData value) { m_noninherited.border_top_right_radius = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-06 12:54:47 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    BorderData& border_left() { return m_noninherited.border_left; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    BorderData& border_top() { return m_noninherited.border_top; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    BorderData& border_right() { return m_noninherited.border_right; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    BorderData& border_bottom() { return m_noninherited.border_bottom; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-01-18 17:41:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_flex_direction(CSS::FlexDirection value) { m_noninherited.flex_direction = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-05-30 12:11:32 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_flex_wrap(CSS::FlexWrap value) { m_noninherited.flex_wrap = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-04 18:10:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_flex_basis(FlexBasisData value) { m_noninherited.flex_basis = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:22:08 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_flex_grow(float value) { m_noninherited.flex_grow = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_flex_shrink(float value) { m_noninherited.flex_shrink = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-31 22:11:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_order(int value) { m_noninherited.order = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-03-18 20:49:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_accent_color(Color value) { m_inherited.accent_color = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 13:50:06 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_align_content(CSS::AlignContent value) { m_noninherited.align_content = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-15 18:27:20 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_align_items(CSS::AlignItems value) { m_noninherited.align_items = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-11 23:52:36 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_align_self(CSS::AlignSelf value) { m_noninherited.align_self = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-07-22 16:05:11 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_appearance(CSS::Appearance value) { m_noninherited.appearance = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-19 15:27:40 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_opacity(float value) { m_noninherited.opacity = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-07-16 18:38:26 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_justify_content(CSS::JustifyContent value) { m_noninherited.justify_content = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-23 16:55:22 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_box_shadow(Vector<ShadowData>&& value) { m_noninherited.box_shadow = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-18 17:20:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_transformations(Vector<CSS::Transformation> value) { m_noninherited.transformations = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 19:38:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_transform_origin(CSS::TransformOrigin value) { m_noninherited.transform_origin = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-10-05 16:55:02 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_box_sizing(CSS::BoxSizing value) { m_noninherited.box_sizing = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-04 18:10:38 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_vertical_align(Variant<CSS::VerticalAlign, CSS::LengthPercentage> value) { m_noninherited.vertical_align = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-21 15:42:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_visibility(CSS::Visibility value) { m_inherited.visibility = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-21 18:08:41 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_grid_auto_columns(CSS::GridTrackSizeList value) { m_noninherited.grid_auto_columns = move(value); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_grid_auto_rows(CSS::GridTrackSizeList value) { m_noninherited.grid_auto_rows = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-30 13:27:57 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_grid_template_columns(CSS::GridTrackSizeList value) { m_noninherited.grid_template_columns = move(value); }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_grid_template_rows(CSS::GridTrackSizeList value) { m_noninherited.grid_template_rows = move(value); }
							 | 
						
					
						
							
								
									
										
										
										
											2022-08-23 19:58:00 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_grid_column_end(CSS::GridTrackPlacement value) { m_noninherited.grid_column_end = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_grid_column_start(CSS::GridTrackPlacement value) { m_noninherited.grid_column_start = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_grid_row_end(CSS::GridTrackPlacement value) { m_noninherited.grid_row_end = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_grid_row_start(CSS::GridTrackPlacement value) { m_noninherited.grid_row_start = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-11-06 12:42:22 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_column_gap(CSS::Size const& column_gap) { m_noninherited.column_gap = column_gap; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_row_gap(CSS::Size const& row_gap) { m_noninherited.row_gap = row_gap; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-02 23:01:29 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_border_collapse(CSS::BorderCollapse const& border_collapse) { m_noninherited.border_collapse = border_collapse; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-01-16 18:17:05 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_grid_template_areas(Vector<Vector<String>> const& grid_template_areas) { m_noninherited.grid_template_areas = grid_template_areas; }
							 | 
						
					
						
							
								
									
										
										
										
											2021-09-16 12:28:14 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-23 01:31:17 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_fill(SVGPaint value) { m_inherited.fill = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_stroke(SVGPaint value) { m_inherited.stroke = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_fill_opacity(float value) { m_inherited.fill_opacity = value; }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    void set_stroke_opacity(float value) { m_inherited.stroke_opacity = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-14 16:52:14 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_stroke_width(LengthPercentage value) { m_inherited.stroke_width = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-04-19 18:51:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_stop_color(Color value) { m_noninherited.stop_color = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2023-05-19 20:35:39 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    void set_stop_opacity(float value) { m_noninherited.stop_opacity = value; }
							 | 
						
					
						
							
								
									
										
										
										
											2020-06-24 14:17:05 +02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								};
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |