Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion style/stylesheets/rule_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ impl<'a, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'i> {
"font-face" => {
AtRulePrelude::FontFace
},
"container" if cfg!(feature = "gecko") => {
"container" => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you work on it, it may be good to keep it behind an experimental pref, like

"container" if container_enabled() => {
#[cfg(feature = "gecko")]
fn container_enabled() {
    true
}

#[cfg(feature = "servo")]
fn container_enabled() {
    static_prefs::pref!("layout.container-queries.enabled")
}

let conditions = input.parse_comma_separated(|input| {
ContainerCondition::parse(&self.context, input)
})?;
Expand Down
Loading