mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
LibWeb: Parse and store the opacity property
This commit is contained in:
parent
495f69b76b
commit
0e6ba6e1d3
5 changed files with 23 additions and 0 deletions
|
@ -62,6 +62,7 @@ public:
|
|||
FlexBasisData flex_basis() const { return m_noninherited.flex_basis; }
|
||||
Optional<float> flex_grow_factor() const { return m_noninherited.flex_grow_factor; }
|
||||
Optional<float> flex_shrink_factor() const { return m_noninherited.flex_shrink_factor; }
|
||||
Optional<float> opacity() const { return m_noninherited.opacity; }
|
||||
CSS::JustifyContent justify_content() const { return m_noninherited.justify_content; }
|
||||
const CSS::Length& width() const { return m_noninherited.width; }
|
||||
const CSS::Length& min_width() const { return m_noninherited.min_width; }
|
||||
|
@ -146,6 +147,7 @@ protected:
|
|||
CSS::JustifyContent justify_content { InitialValues::justify_content() };
|
||||
CSS::Overflow overflow_x { InitialValues::overflow() };
|
||||
CSS::Overflow overflow_y { InitialValues::overflow() };
|
||||
Optional<float> opacity;
|
||||
} m_noninherited;
|
||||
};
|
||||
|
||||
|
@ -193,6 +195,7 @@ public:
|
|||
void set_flex_basis(FlexBasisData value) { m_noninherited.flex_basis = value; }
|
||||
void set_flex_grow_factor(Optional<float> value) { m_noninherited.flex_grow_factor = value; }
|
||||
void set_flex_shrink_factor(Optional<float> value) { m_noninherited.flex_shrink_factor = value; }
|
||||
void set_opacity(Optional<float> value) { m_noninherited.opacity = value; }
|
||||
void set_justify_content(CSS::JustifyContent value) { m_noninherited.justify_content = value; }
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue