mirror of
https://github.com/servo/servo.git
synced 2025-06-22 16:18:59 +01:00
Provide container information in computed::Context and use it to resolve the container queries. This still fails a lot of tests because we are not ensuring that layout is up-to-date when we style the container descendants, but that's expected. Differential Revision: https://phabricator.services.mozilla.com/D146478
19 lines
641 B
Rust
19 lines
641 B
Rust
/* 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 mod values;
|
|
|
|
pub use self::condition::QueryCondition;
|
|
pub use self::feature::FeatureFlags;
|
|
pub use self::feature_expression::{QueryFeatureExpression, FeatureType};
|