Skip to content

Commit 7100e89

Browse files
committed
[css-anchor-position] Make anchor() and anchor-size() invalid outside their allowed properties. Remove related issue.
1 parent 87d91b0 commit 7100e89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,7 @@ can use the <dfn>anchor()</dfn> function
696696
as a value in its [=inset properties=]
697697
to refer to the position of one or more [=anchor elements=].
698698
The ''anchor()'' function resolves to a <<length>>.
699+
It is only valid to be used in the [=inset properties=].
699700

700701
<pre class=prod>
701702
&lt;anchor()> = anchor( <<anchor-element>>? <<anchor-side>>, <<length-percentage>>? )
@@ -1055,10 +1056,6 @@ where this could be the case.
10551056
do not resolve to a [=target anchor element=],
10561057
the element is [=strongly hidden=].
10571058

1058-
Issue: Does misused anchor() count, like ''border-width: anchor(--foo)''?
1059-
I assume no, so we'll need to split out the concept of invalid usage
1060-
from a valid usage that fails to find an anchor.
1061-
10621059
Issue: What is a <dfn dfn for>required anchor reference</dfn>?
10631060
''anchor()'' functions that don't have a fallback value;
10641061
the default anchor *sometimes*?
@@ -1160,6 +1157,7 @@ can use the <dfn>anchor-size()</dfn> function
11601157
in its [=sizing properties=]
11611158
to refer to the size of one or more [=anchor elements=].
11621159
The ''anchor-size()'' function resolves to a <<length>>.
1160+
It is only valid to be used in the [=sizing properties=].
11631161

11641162
The ''anchor-size()'' Function {#anchor-size-fn}
11651163
------------------------------

0 commit comments

Comments
 (0)