Skip to content

Commit 4d318a3

Browse files
committed
[css-anchor-position] Make anchor-size()'s axis keyword optional. #10318
1 parent 3856796 commit 4d318a3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@ The ''anchor-size()'' Function {#anchor-size-fn}
12441244
------------------------------
12451245

12461246
<pre class=prod>
1247-
anchor-size() = anchor-size( <<anchor-element>>? && <<anchor-size>>, <<length-percentage>>? )
1247+
anchor-size() = anchor-size( [ <<anchor-element>> || <<anchor-size>> ]? , <<length-percentage>>? )
12481248
<dfn><<anchor-size>></dfn> = width | height | block | inline | self-block | self-inline
12491249
</pre>
12501250

@@ -1273,6 +1273,12 @@ according to either the [=writing mode=] of the element
12731273
or the [=writing mode=] of the element's [=containing block=]
12741274
(for ''anchor-size()/block'' and ''anchor-size()/inline'').
12751275

1276+
If the <<anchor-size>> keyword is omitted,
1277+
it defaults to behaving as whatever keyword
1278+
matches the axis of the property that ''anchor-size()'' is used in.
1279+
(For example, ''width: anchor-size()''
1280+
is equivalent to ''width: anchor-size(width)''.)
1281+
12761282
An ''anchor-size()'' function representing a [=valid anchor-size function=]
12771283
resolves at [=computed value=] time
12781284
(via [=style & layout interleaving=])

0 commit comments

Comments
 (0)