From 5f5c6378f657db08fb48e0c75c184a0f0b8865bb Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Thu, 24 Oct 2024 03:56:29 +0800 Subject: [PATCH] feat: update syntax for Anchor Positioning related properties (#770) --- css/functions.json | 4 ++-- css/properties.json | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/css/functions.json b/css/functions.json index 3ec057513..09c9ce309 100644 --- a/css/functions.json +++ b/css/functions.json @@ -1,6 +1,6 @@ { "anchor()": { - "syntax": "anchor( ? , ? )", + "syntax": "anchor( ? && , ? )", "groups": [ "CSS Positioning" ], @@ -8,7 +8,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor" }, "anchor-size()": { - "syntax": "anchor-size( ? , ? )", + "syntax": "anchor-size( [ || ]? , ? )", "groups": [ "CSS Positioning" ], diff --git a/css/properties.json b/css/properties.json index e916697e6..f7557a8fa 100644 --- a/css/properties.json +++ b/css/properties.json @@ -8420,7 +8420,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/position" }, "position-anchor": { - "syntax": "", + "syntax": "auto | ", "media": "visual", "inherited": false, "animationType": "discrete", @@ -8428,7 +8428,7 @@ "groups": [ "CSS Positioning" ], - "initial": "implicit", + "initial": "auto", "appliesto": "absolutelyPositionedElements", "computed": "asSpecified", "order": "perGrammar", @@ -8459,7 +8459,10 @@ "position-try-fallbacks", "position-try-order" ], - "percentages": "no", + "percentages": [ + "position-try-fallbacks", + "position-try-order" + ], "groups": [ "CSS Positioning" ],