diff --git a/CHANGELOG.md b/CHANGELOG.md index 8978fbb7..1da6a481 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ Please also have a look at our ### Added +- Support for CSS container queries (#1400) + ### Changed ### Deprecated diff --git a/src/Property/AtRule.php b/src/Property/AtRule.php index 7a00660f..f5ae475e 100644 --- a/src/Property/AtRule.php +++ b/src/Property/AtRule.php @@ -18,7 +18,7 @@ interface AtRule extends CSSListItem * * @internal since 8.5.2 */ - public const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values'; + public const BLOCK_RULES = 'media/document/supports/region-style/font-feature-values/container'; /** * @return non-empty-string diff --git a/tests/CSSList/AtRuleBlockListTest.php b/tests/CSSList/AtRuleBlockListTest.php index 9a725b21..3539463b 100644 --- a/tests/CSSList/AtRuleBlockListTest.php +++ b/tests/CSSList/AtRuleBlockListTest.php @@ -48,6 +48,9 @@ public static function provideSyntacticallyCorrectAtRule(): array } ', ], + 'container' => [ + '@container (min-width: 60rem) { .items { background: blue; } }', + ], ]; } diff --git a/tests/Unit/Property/AtRuleTest.php b/tests/Unit/Property/AtRuleTest.php new file mode 100644 index 00000000..53793bea --- /dev/null +++ b/tests/Unit/Property/AtRuleTest.php @@ -0,0 +1,22 @@ +