mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibWeb: Mark CSS properties as not affecting stacking context by default
We were mistakenly treating all CSS properties as if changing them requires a rebuild of the stacking context tree.
This commit is contained in:
parent
a763e68e73
commit
261cd1d4c7
1 changed files with 3 additions and 3 deletions
|
@ -163,11 +163,11 @@ bool property_affects_stacking_context(PropertyID property_id)
|
|||
properties.for_each_member([&](auto& name, auto& value) {
|
||||
VERIFY(value.is_object());
|
||||
|
||||
bool affects_layout = true;
|
||||
bool affects_stacking_context = false;
|
||||
if (value.as_object().has("affects-stacking-context"))
|
||||
affects_layout = value.as_object().get("affects-stacking-context").to_bool();
|
||||
affects_stacking_context = value.as_object().get("affects-stacking-context").to_bool();
|
||||
|
||||
if (affects_layout) {
|
||||
if (affects_stacking_context) {
|
||||
auto member_generator = generator.fork();
|
||||
member_generator.set("name:titlecase", title_casify(name));
|
||||
member_generator.append(R"~~~(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue