mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
style: Fix style invalidation on layer rule insertion
Layer insertion may change the order of styles, so we may need to fully invalidate. Without this change, bug 1838045 makes layer-statement-before-import.html fail. Differential Revision: https://phabricator.services.mozilla.com/D180929
This commit is contained in:
parent
50d7f882dd
commit
5b184f448b
1 changed files with 5 additions and 1 deletions
|
@ -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(..) |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue