mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Move some of the media query code to a more generic queries module
No behavior change, just moving and renaming files. The code in the "queries" module will be shared between @media and @container. @media has some other code that container queries doesn't need like MediaList / MediaType / etc. That remains in the media_queries module. Differential Revision: https://phabricator.services.mozilla.com/D144435
This commit is contained in:
parent
3eed093e33
commit
453e7d03d4
10 changed files with 127 additions and 118 deletions
17
components/style/queries/mod.rs
Normal file
17
components/style/queries/mod.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
//! Code shared between [media queries][mq] and [container queries][cq].
|
||||
//!
|
||||
//! [mq]: https://drafts.csswg.org/mediaqueries/
|
||||
//! [cq]: https://drafts.csswg.org/css-contain-3/#container-rule
|
||||
|
||||
mod condition;
|
||||
|
||||
#[macro_use]
|
||||
pub mod feature;
|
||||
pub mod feature_expression;
|
||||
|
||||
pub use self::condition::QueryCondition;
|
||||
pub use self::feature_expression::QueryFeatureExpression;
|
Loading…
Add table
Add a link
Reference in a new issue