Skip to content

Commit 8b14ae0

Browse files
committed
[css-align] Clarify that ''justify-items:legacy right'' only does something special to ''justify-self:auto''.
1 parent 6baeba8 commit 8b14ae0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

css-align/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,8 @@ Inline/Main-Axis Alignment: the 'justify-items' property</h3>
868868
<dd>
869869
This keyword causes the value to effectively inherit into descendants.
870870
It can only be combined with the ''<content-position>/center'', ''left'', and ''right'' positions.
871-
The alignment keyword, but not the ''legacy'' keyword, is passed to 'justify-self'.
871+
When ''justify-self:auto'' retrieves the value of 'justify-items',
872+
only the alignment keyword, not the ''legacy'' keyword, is passed to it.
872873
It exists to implement the legacy alignment behavior of HTML's <code>&lt;center></code> element and <code>align</code> attribute.
873874
</dl>
874875

css-align/Overview.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,8 @@ <h3 class="heading settled" data-level="6.1" id="justify-items-property"><span c
16941694
<dd>
16951695
This keyword causes the value to effectively inherit into descendants.
16961696
It can only be combined with the <a class="css" data-link-for="" data-link-type="maybe" href="#valdef-item-position-content-position-center">center</a>, <a class="css" data-link-type="maybe" href="#valdef-item-position-content-position-left">left</a>, and <a class="css" data-link-type="maybe" href="#valdef-item-position-content-position-right">right</a> positions.
1697-
The alignment keyword, but not the <a class="css" data-link-type="maybe" href="#valdef-justify-items-legacy">legacy</a> keyword, is passed to <a class="property" data-link-type="propdesc" href="#propdef-justify-self">justify-self</a>.
1697+
When <span class="css">justify-self:auto</span> retrieves the value of <a class="property" data-link-type="propdesc" href="#propdef-justify-items">justify-items</a>,
1698+
only the alignment keyword, not the <a class="css" data-link-type="maybe" href="#valdef-justify-items-legacy">legacy</a> keyword, is passed to it.
16981699
It exists to implement the legacy alignment behavior of HTML’s <code>&lt;center></code> element and <code>align</code> attribute.
16991700
</dd>
17001701
</dl>

0 commit comments

Comments
 (0)