diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2023-05-26 15:16:47 +0200 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-05-26 15:23:26 +0200 |
commit | dbb51abc62a8eb8e3e46549fb0b78038386b7bf9 (patch) | |
tree | 691f67b9837cd59c8eabf4e4fd2b1a6e3383cf88 /components/style/stylesheets/mod.rs | |
parent | 623c8d8d450baa167b13e6b5b245e93fab60e7e6 (diff) | |
download | servo-dbb51abc62a8eb8e3e46549fb0b78038386b7bf9.tar.gz servo-dbb51abc62a8eb8e3e46549fb0b78038386b7bf9.zip |
style: Hook up basic @layer rule parsing
Disabled, and of course doing nothing for now still, but this is another
piece that is useful to get reviewed separately.
Don't allow layers to be interleaved with @import / @namespace rules as
per https://github.com/w3c/csswg-drafts/issues/6522.
Differential Revision: https://phabricator.services.mozilla.com/D124229
Diffstat (limited to 'components/style/stylesheets/mod.rs')
-rw-r--r-- | components/style/stylesheets/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/style/stylesheets/mod.rs b/components/style/stylesheets/mod.rs index dc3f39e03b0..b4e10ee368e 100644 --- a/components/style/stylesheets/mod.rs +++ b/components/style/stylesheets/mod.rs @@ -372,8 +372,7 @@ impl CssRule { // CssRule::Charset(..) => State::Start, CssRule::Import(..) => State::Imports, CssRule::Namespace(..) => State::Namespaces, - // TODO(emilio): We'll need something here for non-block layer - // rules. + // TODO(emilio): Do we need something for EarlyLayers? _ => State::Body, } } |