Skip to content

Commit 76301a1

Browse files
committed
[css-anchor-position][editorial] fix example to not talk about @Try
1 parent 3541fea commit 76301a1

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

css-anchor-position-1/Overview.bs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -316,22 +316,16 @@ in ''anchor()'' and ''anchor-size()''.
316316
<div class=example>
317317
For example, in the following code
318318
both ''.foo'' and ''.bar'' elements
319-
can use the same positioning properties and fallback,
319+
can use the same positioning properties,
320320
just changing the anchor element they're referring to:
321321

322322
<pre highlight=css>
323323
.anchored {
324324
position: absolute;
325-
position-fallback: --under-then-over;
326-
}
327-
328-
@position-fallback --under-then-over {
329-
@try {
330-
// No &lt;anchor-element> specified,
331-
// so it takes from 'anchor-default'.
332-
top: calc(.5em + anchor(outside));
333-
bottom: auto;
334-
}
325+
top: calc(.5em + anchor(outside));
326+
/* Since no anchor name was specified,
327+
this automatically refers to the
328+
default anchor element. */
335329
}
336330

337331
.foo.anchored {

0 commit comments

Comments
 (0)