Skip to content

Commit cd75f02

Browse files
committed
[css-grid-3][masonry] Initial value of item-tolerance is normal (like gaps) #12111
1 parent c4ab49c commit cd75f02

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

css-grid-3/Overview.bs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ Placement Precision: the 'item-tolerance' property</h3>
757757

758758
<pre class=propdef>
759759
Name: item-tolerance
760-
Value: <<length-percentage>> | infinite
761-
Initial: 1em
760+
Value: normal | <<length-percentage>> | infinite
761+
Initial: normal
762762
Percentages: relative to the [=grid-axis=] [=content box=] size of the [=masonry container=]
763763
Inherited: no
764764
Applies to: [=masonry containers=]
@@ -790,6 +790,15 @@ Placement Precision: the 'item-tolerance' property</h3>
790790
Note: The initial value is a “small” distance (''1em'')
791791
that is probably appropriate to represent “close enough”.
792792

793+
: <dfn>normal</dfn>
794+
:: Resolves to a value of ''1em''.
795+
<!-- This default is consistent with gaps. -->
796+
ISSUE(12111): Should this be a [=used value=] or [=computed value=] of ''1em''?
797+
Used values would allow easier responsiveness to different layout modes,
798+
and would be more consistent with 'gap',
799+
but computed values would enable interpolation with <<length-percentage>> values
800+
and are simpler to manage otherwise.
801+
793802
: <dfn>infinite</dfn>
794803
:: Specifies an infinite [=tie threshold=].
795804
This makes items distribute themselves strictly in order,
@@ -1482,7 +1491,10 @@ Recent Changes</h3>
14821491
* Introduced 'item-flow' and the 'item-*' longhands,
14831492
replacing <css>masonry-flow</css> and related properties.
14841493
(<a href="https://github.com/w3c/csswg-drafts/issues/11480">Issue 11480</a>)
1485-
* Renamed <css>masonry-slack</css> to 'item-tolerance'.
1494+
* Renamed <css>masonry-slack</css> to 'item-tolerance'
1495+
and gave it an initial value of ''item-tolerance/normal''.
1496+
(<a href="https://github.com/w3c/csswg-drafts/issues/10884">Issue 10884</a>,
1497+
<a href="https://github.com/w3c/csswg-drafts/issues/12111">Issue 12111</a>)
14861498
* Tweak baseline alignment to export the highest/lowest among the first/last items of every track.
14871499
(<a href="https://github.com/w3c/csswg-drafts/issues/9530">Issue 9530</a>)
14881500

0 commit comments

Comments
 (0)