mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +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
|
@ -327,6 +327,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
computed_values.set_background_color(specified_style.color_or_fallback(CSS::PropertyID::BackgroundColor, document(), Color::Transparent));
|
||||
|
||||
computed_values.set_z_index(specified_style.z_index());
|
||||
computed_values.set_opacity(specified_style.opacity());
|
||||
if (computed_values.opacity() == 0)
|
||||
m_visible = false;
|
||||
|
||||
if (auto width = specified_style.property(CSS::PropertyID::Width); width.has_value())
|
||||
m_has_definite_width = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue