Skip to content

Commit aab83ec

Browse files
committed
[css-anchor-position] Allow applying try-tactic to a named try block, for simplicity
1 parent d1156bc commit aab83ec

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ Giving Fallback Options: the 'position-try-options' property {#position-try-opti
10021002

10031003
<pre class=propdef>
10041004
Name: position-try-options
1005-
Value: none | [ <<dashed-ident>> | <<try-tactic>> ]#
1005+
Value: none | [ <<dashed-ident>> || <<try-tactic>> ]#
10061006
Initial: none
10071007
Inherited: no
10081008
Applies to: [=absolutely-positioned=] elements
@@ -1082,6 +1082,18 @@ Values have the following meanings:
10821082
anchor(top) becomes anchor(bottom);
10831083
start becomes end;
10841084
etc.
1085+
1086+
: <dfn><<dashed-ident>> || <<try-tactic>></dfn>
1087+
::
1088+
Combines the effects of the previous two options:
1089+
if there is a ''@position-try'' rule
1090+
with the given name,
1091+
then applies its [=position option=] to the element's base style,
1092+
transforms it according to the specified <<try-tactic>>,
1093+
and then adds the result
1094+
to the element's [=position options list=].
1095+
1096+
Otherwise, does nothing.
10851097
</dl>
10861098

10871099

0 commit comments

Comments
 (0)