style: Ensure options in listbox selects are not stacking contexts by default

We could have a different property or something but this seems
reasonable as well probably.

Differential Revision: https://phabricator.services.mozilla.com/D146994
This commit is contained in:
Emilio Cobos Álvarez 2023-08-14 23:53:53 +02:00 committed by Martin Robinson
parent 9605ed7c74
commit 8c3553226b

View file

@ -1285,7 +1285,9 @@ impl Parse for WillChange {
&["will-change", "none", "all", "auto"],
)?;
if ident.0 == atom!("scroll-position") {
if context.in_ua_sheet() && ident.0 == atom!("-moz-fixed-pos-containing-block") {
bits |= WillChangeBits::FIXPOS_CB_NON_SVG;
} else if ident.0 == atom!("scroll-position") {
bits |= WillChangeBits::SCROLL;
} else {
bits |= change_bits_for_maybe_property(&parser_ident, context);