Skip to content

Commit 7115de5

Browse files
committed
[css-position-4] Define 'in the same top layer' and 'in a higher top layer' for other specs to reference.
1 parent f2e30ae commit 7115de5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

css-position-4/Overview.bs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,21 @@ This ensures that things like [=popovers=]
363363
can be displayed reliably,
364364
regardless of what their ancestor elements might be doing.
365365

366+
The <dfn export>top layer root</dfn> of an element
367+
is its nearest ancestor element
368+
that is in the [=Document/top layer=],
369+
or none otherwise
370+
(in which case it's painted as part of the document as normal).
371+
372+
Two elements are <dfn export>in the same top layer</dfn>
373+
if they have the same [=top layer root=]
374+
(including if both are none).
375+
An element A is <dfn export>in a higher top layer</dfn>
376+
than an element B
377+
if A has a [=top layer root=],
378+
and either B has a [=top layer root=] earlier in the [=Document/top layer=] than A's,
379+
or B doesn't have a [=top layer root=] at all.
380+
366381
Note: The [=Document/top layer=] is managed entirely by the [=user agent=];
367382
it cannot be directly manipulated by authors.
368383
This ensures that "nested" invocations of top-layer-using APIs,

0 commit comments

Comments
 (0)