diff options
author | Oriol Brufau <obrufau@igalia.com> | 2025-03-13 07:49:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-13 06:49:08 +0000 |
commit | f93006af95dd75a07de2571e6a2edabcc64a46ac (patch) | |
tree | 2e356bbe166bf7f918c295c01aebde9ad3e5759e /components/layout/display_list/builder.rs | |
parent | 205b97d5edbca6f24b189b564ec5f7129ba40228 (diff) | |
download | servo-f93006af95dd75a07de2571e6a2edabcc64a46ac.tar.gz servo-f93006af95dd75a07de2571e6a2edabcc64a46ac.zip |
Improve logic for establishing a stacking context (#35947)
In particular:
- `z-index` will now work on unpositioned grid items.
- `will-change: z-index` will only establish a stacking context if
`z-index` applies, i.e. if the box is positioned or a flex/grid item.
- The conditions in `establishes_stacking_context()` are reordered,
so that the most likely ones are checked first.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout/display_list/builder.rs')
0 files changed, 0 insertions, 0 deletions