Skip to content

Commit fcebd43

Browse files
authored
[css-anchor-position-1] Edits from proofreading. (w3c#9080)
This makes a few edits from proofreading the document. In particular: * add a sub-list to make it clearer what condition an "Otherwise" is referring to, * use correct bikeshed shorthand for a syntax item in a comment in an example so that it shows up, and * change two places that invoke a defined algorithm to use wording that makes it clearer that they're invoking an algorithm.
1 parent 0dcb036 commit fcebd43

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ or nothing (a missing specifier).
198198
for |query el|
199199
given the |query el|'s [=default anchor specifier=].
200200

201-
2. If |anchor spec| is ''implicit'',
202-
and the Popover API defines an [=implicit anchor element=] for |query el|
203-
which is an [=acceptable anchor element=] for |query el|,
204-
return that element.
201+
2. If |anchor spec| is ''implicit'':
202+
1. If the Popover API defines an [=implicit anchor element=] for |query el|
203+
which is an [=acceptable anchor element=] for |query el|,
204+
return that element.
205205

206-
Otherwise, return nothing.
206+
2. Otherwise, return nothing.
207207

208208
Note: Future APIs might also define implicit anchor elements.
209209
When they do, they'll be explicitly handled in this algorithm,
@@ -312,7 +312,7 @@ in ''anchor()'' and ''anchor-size()''.
312312

313313
@position-fallback --under-then-over {
314314
@try {
315-
// No <anchor-element> specified,
315+
// No <<anchor-element>> specified,
316316
// so it takes from 'anchor-default'.
317317
top: calc(.5em + anchor(auto));
318318
bottom: auto;
@@ -703,9 +703,10 @@ only if all the following conditions are true:
703703
it's being used in an [=inset property=] in that axis.
704704
(For example, ''left'' can only be used in 'left', 'right',
705705
or a logical [=inset property=] in the horizontal axis.)
706-
* There is a [=target anchor element=]
707-
for the element it's used on,
708-
and the <<anchor-element>> value specified in the function.
706+
* The result of determining the [=target anchor element=] is not nothing when
707+
given the querying element as the element it's used on,
708+
and the anchor specifier as
709+
the <<anchor-element>> value specified in the function.
709710

710711
If any of these conditions are false,
711712
the ''anchor()'' function resolves to its specified fallback value.
@@ -969,7 +970,7 @@ Animation type: discrete
969970

970971
The [=additional fallback-bounds rect=]
971972
is the [=padding box=]
972-
of the [=target anchor element=]
973+
of the result of determining the [=target anchor element=]
973974
given this element and the specified <<dashed-ident>>.
974975
If there is no such [=target anchor element=],
975976
there is no [=additional fallback-bounds rect=].

0 commit comments

Comments
 (0)