1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07: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:
Andreas Kling 2022-03-25 00:59:42 +01:00
parent a763e68e73
commit 261cd1d4c7

View file

@ -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"~~~(