Skip to content

Enable @container rule for servo#351

Draft
BudiArb wants to merge 1 commit intoservo:mainfrom
BudiArb:at-container-rule
Draft

Enable @container rule for servo#351
BudiArb wants to merge 1 commit intoservo:mainfrom
BudiArb:at-container-rule

Conversation

@BudiArb
Copy link
Copy Markdown
Contributor

@BudiArb BudiArb commented Apr 10, 2026

Enable @container rule for servo

Servo PR: servo/servo#44083

Signed-off-by: Budiman Arbenta <arbenta6@gmail.com>
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")
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants