mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Add basic @container rule parsing and boilerplate
For now parse a MediaFeatureCondition. That needs being made more specific, but that is probably worth its own patch. Differential Revision: https://phabricator.services.mozilla.com/D143192
This commit is contained in:
parent
6755548267
commit
b31ea25848
10 changed files with 134 additions and 6 deletions
|
@ -556,6 +556,7 @@ impl StylesheetInvalidationSet {
|
|||
FontFace(..) |
|
||||
Keyframes(..) |
|
||||
ScrollTimeline(..) |
|
||||
Container(..) |
|
||||
Style(..) => {
|
||||
if is_generic_change {
|
||||
// TODO(emilio): We need to do this for selector / keyframe
|
||||
|
@ -610,7 +611,7 @@ impl StylesheetInvalidationSet {
|
|||
}
|
||||
},
|
||||
Document(..) | Namespace(..) | Import(..) | Media(..) | Supports(..) |
|
||||
LayerStatement(..) | LayerBlock(..) => {
|
||||
Container(..) | LayerStatement(..) | LayerBlock(..) => {
|
||||
// Do nothing, relevant nested rules are visited as part of the
|
||||
// iteration.
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue