From 8c3553226bb525d98c641377b2847bbbf237d5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 14 Aug 2023 23:53:53 +0200 Subject: [PATCH] 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 --- components/style/values/specified/box.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 790c6478984..0a2d2bb9b19 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -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);