Skip to content

Commit a3a9e4e

Browse files
authored
[css-gaps-1] Clarify application of writing-mode and direction to gap decorations. #13648, #13649 (#13732)
1 parent 70c78d3 commit a3a9e4e

File tree

2 files changed

+36
-5
lines changed

2 files changed

+36
-5
lines changed

css-gaps-1/Overview.bs

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@ Gap decorations</h2>
169169
note that while the border and background of the container aren't scrolled,
170170
the decorations need to scroll along with items in the container.
171171

172+
[=Gap decorations=] follow the definitions of "column" and "row" laid out by the container to which the properties are applied.
173+
They depend on the container type taking writing mode and text direction into account when determining the meanings of these terms.
174+
For examples, see:
175+
[[CSS-MULTICOL-2#the-multi-column-model]],
176+
[[CSS-FLEXBOX-1#flex-direction-property]],
177+
and
178+
[[CSS-GRID-1#grid-concepts]].
179+
180+
Properties in this specification whose names begin with "column" apply to [=column gaps=],
181+
and properties in this specification whose names begin with "row" apply to [=row gaps=].
182+
172183
<!--
173184
<div class="example">
174185
<pre>
@@ -227,8 +238,8 @@ Segment endpoints</h4>
227238
may start or end.
228239
There are two endpoint types:
229240
<ul>
230-
<li><dfn>start segment endpoint</dfn>: Point at which a segment begins.
231-
<li><dfn>end segment endpoint</dfn>: Point at which a segment ends.
241+
<li><dfn>start segment endpoint</dfn>: Point closest to the [=start=] side of the [=gap=].
242+
<li><dfn>end segment endpoint</dfn>: Point closest to the [=end=] side of the [=gap=].
232243
</ul>
233244

234245
<div algorithm="create segment endpoints">
@@ -851,7 +862,7 @@ Adjusting gap decoration endpoints: The 'rule-inset' properties</h3>
851862
<dd>
852863
The [=crossing gap width=] is the size of the [=gap junction=]
853864
in the same dimension as the [=gap=] in which the [=segment endpoint=] lies
854-
(the horizontal dimension for row gaps and the vertical dimension for column gaps).
865+
(the row dimension for [=row gaps=] and the column dimension for [=column gaps=]).
855866

856867
Note: Typically, this will be the used value of the 'column-gap' or 'row-gap' property,
857868
whichever applies to the intersecting or abutting gap,
@@ -864,14 +875,31 @@ Adjusting gap decoration endpoints: The 'rule-inset' properties</h3>
864875
<p>
865876
The 'column-rule-edge-inset-start' and 'row-rule-edge-inset-start' properties apply to [=start segment endpoints=] that are [=edge segment endpoints=].
866877
The 'column-rule-interior-inset-start' and 'row-rule-interior-inset-start' properties apply to [=start segment endpoints=] that are [=interior segment endpoints=].
867-
For these properties, positive values offset in the forward direction, and negative values offset in the reverse direction, along the axis of the gap.
878+
For these properties, positive values offset in the [=end=] direction, and negative values offset in the [=start=] direction, along the axis of the gap.
868879
</p>
869880
<p>
870881
The 'column-rule-edge-inset-end' and 'row-rule-edge-inset-end' properties apply to [=end segment endpoints=] that are [=edge segment endpoints=].
871882
The 'column-rule-interior-inset-end' and 'row-rule-interior-inset-end' properties apply to [=end segment endpoints=] that are [=interior segment endpoints=].
872-
For these properties, positive values offset in the reverse direction, and negative values offset in the forward direction, along the axis of the gap.
883+
For these properties, positive values offset in the [=start=] direction, and negative values offset in the [=end=] direction, along the axis of the gap.
873884
</p>
874885

886+
<div class="example">
887+
<pre>
888+
.inset-end {
889+
row-rule: 3px solid red;
890+
row-rule-break: intersection;
891+
row-rule-inset-end: 10px;
892+
}
893+
</pre>
894+
<figure>
895+
<img alt="" src="images/example-inset-direction.png">
896+
<figcaption>
897+
Row-direction decorations with asymmetric insets
898+
in LTR and RTL directions and vertical writing-mode.
899+
</figcaption>
900+
</figure>
901+
</div>
902+
875903
<wpt>
876904
parsing/rule-edge-start-end-inset-computed.html
877905
parsing/rule-edge-start-end-inset-invalid.html
@@ -2315,6 +2343,9 @@ Changes since the <a href="https://www.w3.org/TR/2026/WD-css-gaps-1-20260227/">2
23152343
<ul class="non-normative">
23162344
<li>Added the ''column-rule-visibility-items/normal'' value to [[#visibility|*-rule-visibility-items]] and made it the new initial value.
23172345
(<a href="https://github.com/w3c/csswg-drafts/issues/13477">Issue 13477</a>)
2346+
<li>Clarified applicability of writing mode and text decoration to gap decorations.
2347+
(<a href="https://github.com/w3c/csswg-drafts/issues/13648">Issue 13648</a>,
2348+
<a href="https://github.com/w3c/csswg-drafts/issues/13649">Issue 13649</a>)
23182349
<li>Updated with links to additional WPTs.
23192350
</ul>
23202351

9.31 KB
Loading

0 commit comments

Comments
 (0)