Skip to content

Commit 15427a6

Browse files
committed
[css-align-3] Define grid-gap as legacy name aliases w3c#8014
1 parent bfe8538 commit 15427a6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

css-align-3/Overview.bs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,14 +2193,11 @@ Legacy Gap Properties: the 'grid-row-gap', 'grid-column-gap', and 'grid-gap' pro
21932193
The Grid Layout module was originally written with its own set of [=gutter=] properties,
21942194
before all such properties were unified into the existing 'row-gap'/'column-gap' naming.
21952195
For compatibility with legacy content,
2196-
those legacy property names must be supported as aliases:
2196+
these grid-prefixed names must be supported as follows:
21972197

2198-
* <dfn property>grid-row-gap</dfn> must be treated as a shorthand for the 'row-gap' property
2199-
* <dfn property>grid-column-gap</dfn> must be treated as a shorthand for the 'column-gap' property
2200-
* <dfn property>grid-gap</dfn> must be treated as a shorthand for the 'gap' property
2201-
2202-
In all three cases, the legacy properties must take the same grammar as the property they are aliasing,
2203-
and just "forward" the value to their aliased property.
2198+
* <dfn property>grid-row-gap</dfn> as a [=legacy name alias=] of the 'row-gap' property
2199+
* <dfn property>grid-column-gap</dfn> as a [=legacy name alias=] of the 'column-gap' property
2200+
* <dfn property>grid-gap</dfn> as a [=legacy name alias=] of the 'gap' property
22042201

22052202
<!--
22062203
████████ ███ ██████ ████████ ██ ████ ██ ██ ████████
@@ -2529,6 +2526,8 @@ Changes</h2>
25292526
(<a href="https://github.com/w3c/csswg-drafts/issues/8214">Issue 8214</a>)
25302527
<li>Made [=block containers=] default to ''safe'' alignment.
25312528
(<a href="https://github.com/w3c/csswg-drafts/issues/8992">Issue 8992</a>)
2529+
<li>Define the 'grid-gap' properties as [=legacy name aliases=] of the 'gap' properties.
2530+
(<a href="https://github.com/w3c/csswg-drafts/issues/8014">Issue 8014</a>)
25322531
</ul>
25332532

25342533
Changes since the <a href="https://www.w3.org/TR/2021/WD-css-align-3-20211224/">24 December 2021 Working Draft</a> include:

0 commit comments

Comments
 (0)