diff --git a/components/style/values/specified/box.rs b/components/style/values/specified/box.rs index 9e20e3a4f59..efdb65ff973 100644 --- a/components/style/values/specified/box.rs +++ b/components/style/values/specified/box.rs @@ -1346,12 +1346,12 @@ bitflags! { const LAYOUT = 1 << 2; /// `paint` variant, turns on paint containment const PAINT = 1 << 3; - /// `strict` variant, turns on all types of containment - const STRICT = 1 << 4 | Contain::LAYOUT.bits | Contain::PAINT.bits | Contain::SIZE.bits; + /// 'size' variant, turns on size containment + const SIZE = 1 << 4 | Contain::INLINE_SIZE.bits | Contain::BLOCK_SIZE.bits; /// `content` variant, turns on layout and paint containment const CONTENT = 1 << 5 | Contain::LAYOUT.bits | Contain::PAINT.bits; - /// 'size' variant, turns on size containment - const SIZE = 1 << 6 | Contain::INLINE_SIZE.bits | Contain::BLOCK_SIZE.bits; + /// `strict` variant, turns on all types of containment + const STRICT = 1 << 6 | Contain::LAYOUT.bits | Contain::PAINT.bits | Contain::SIZE.bits; } }