Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions css-conditional-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1587,6 +1587,63 @@ Scrollable: the '@container/scrollable' feature</h4>
The [=scroll container=] has [=scrollable overflow=] in its inline direction.
</dl>

<h4 id="direction">
Direction: the '@container/direction' feature</h4>

<pre class="descdef mq">
Name: direction
For: @container
Value: none | top | right | bottom | left | block-start | inline-start | block-end | inline-end | x | y | block | inline
Type: discrete
</pre>

For a [=query container=] that is a [=scroll container=],
the '@container/direction' [=container feature=] queries the direction of its most recent [=relative scroll=].
The logical values map to physical based on the direction and writing-mode of the [=query container=].
None of the values match if the container is not a [=scroll container=].

<dl dfn-type=value dfn-for="@container/direction">
<dt><dfn>none</dfn>
<dd>
The [=query container=] has not had a [=relative scroll=] yet.
<dt><dfn>top</dfn>
<dd>
The most recent [=relative scroll=] was upwards.
<dt><dfn>right</dfn>
<dd>
The most recent [=relative scroll=] was to the right.
<dt><dfn>bottom</dfn>
<dd>
The most recent [=relative scroll=] was downwards.
<dt><dfn>left</dfn>
<dd>
The most recent [=relative scroll=] was to the left.
<dt><dfn>block-start</dfn>
<dd>
The most recent [=relative scroll=] was towards the [=block-start=] direction.
<dt><dfn>inline-start</dfn>
<dd>
The most recent [=relative scroll=] was towards the [=inline-start=] direction.
<dt><dfn>block-end</dfn>
<dd>
The most recent [=relative scroll=] was towards the [=block-end=] direction.
<dt><dfn>inline-end</dfn>
<dd>
The most recent [=relative scroll=] was towards the [=inline-end=] direction.
<dt><dfn>x</dfn>
<dd>
The most recent [=relative scroll=] was in the horizontal direction.
<dt><dfn>y</dfn>
<dd>
The most recent [=relative scroll=] was in the vertical direction.
<dt><dfn>block</dfn>
<dd>
The most recent [=relative scroll=] was in the block direction.
<dt><dfn>inline</dfn>
<dd>
The most recent [=relative scroll=] was in the inline direction.
</dl>


<h2 id="container-lengths">
Container Relative Lengths: the ''cqw'', ''cqh'', ''cqi'', ''cqb'', ''cqmin'', ''cqmax'' units</h2>
Expand Down