mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:57:44 +00:00
LibWeb: Add CSS CompositeStyleValue
This represents the value of properties assigned via their shorthands, and is expanded when computing actual property values.
This commit is contained in:
parent
49bb04a6ba
commit
279924242d
9 changed files with 209 additions and 13 deletions
|
@ -96,6 +96,7 @@ public:
|
|||
BorderRadiusShorthand,
|
||||
Calculated,
|
||||
Color,
|
||||
Composite,
|
||||
ConicGradient,
|
||||
Content,
|
||||
CustomIdent,
|
||||
|
@ -149,6 +150,7 @@ public:
|
|||
bool is_border_radius_shorthand() const { return type() == Type::BorderRadiusShorthand; }
|
||||
bool is_calculated() const { return type() == Type::Calculated; }
|
||||
bool is_color() const { return type() == Type::Color; }
|
||||
bool is_composite() const { return type() == Type::Composite; }
|
||||
bool is_conic_gradient() const { return type() == Type::ConicGradient; }
|
||||
bool is_content() const { return type() == Type::Content; }
|
||||
bool is_custom_ident() const { return type() == Type::CustomIdent; }
|
||||
|
@ -201,6 +203,7 @@ public:
|
|||
BorderStyleValue const& as_border() const;
|
||||
CalculatedStyleValue const& as_calculated() const;
|
||||
ColorStyleValue const& as_color() const;
|
||||
CompositeStyleValue const& as_composite() const;
|
||||
ConicGradientStyleValue const& as_conic_gradient() const;
|
||||
ContentStyleValue const& as_content() const;
|
||||
CustomIdentStyleValue const& as_custom_ident() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue