diff --git a/components/style/invalidation/stylesheets.rs b/components/style/invalidation/stylesheets.rs index 6326a15e61a..6ae67452dbd 100644 --- a/components/style/invalidation/stylesheets.rs +++ b/components/style/invalidation/stylesheets.rs @@ -548,12 +548,16 @@ impl StylesheetInvalidationSet { // It's not clear what handling changes for this correctly would // look like. }, + LayerStatement(..) => { + // Layer statement insertions might alter styling order, so we need to always + // invalidate fully. + return self.invalidate_fully(); + }, CounterStyle(..) | Page(..) | Property(..) | FontFeatureValues(..) | FontPaletteValues(..) | - LayerStatement(..) | FontFace(..) | Keyframes(..) | Container(..) |