Skip to content

Commit 5bd2830

Browse files
Merge branch 'main' of github.com:MicrosoftEdge/Demos
2 parents aac1e35 + a512edc commit 5bd2830

File tree

7 files changed

+54
-55
lines changed

7 files changed

+54
-55
lines changed

css-gap-decorations/burger-menu.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
column-rule: 1.5px solid #ccc;
2121
row-rule: 3px solid #000;
2222
column-rule-break: intersection;
23-
column-rule-outset: -15px;
24-
row-rule-outset: -8px;
23+
column-rule-inset: 15px;
24+
row-rule-inset: 8px;
2525

2626
box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
2727
max-width: 1000px;

css-gap-decorations/daily-css-news.html

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
column-rule-width: 1px;
4848
column-rule-style: solid;
4949
column-rule-color: var(--accent);
50-
gap-rule-paint-order: column-over-row;
50+
rule-overlap: column-over-row;
5151
padding-bottom: 0.5rem;
5252
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
5353
}
@@ -73,7 +73,7 @@
7373
row-rule-width: 1px;
7474
row-rule-style: solid;
7575
row-rule-color: var(--rule);
76-
gap-rule-paint-order: row-over-column;
76+
rule-overlap: row-over-column;
7777
background: rgba(255, 255, 255, 0.1);
7878
padding: 0.5rem 1rem;
7979
border-radius: 4px;
@@ -98,9 +98,8 @@
9898
grid-template-columns: 2fr 1fr;
9999
gap: 2rem;
100100
padding: 2rem;
101-
rule-width: 2px;
102-
rule-style: dashed;
103-
rule-color: var(--rule);
101+
row-rule: 2px dashed var(--rule);
102+
column-rule: 2px dashed var(--rule);
104103
}
105104

106105
@media (max-width: 900px) {
@@ -137,7 +136,7 @@
137136
column-rule-width: 1px;
138137
column-rule-style: solid;
139138
column-rule-color: var(--rule);
140-
gap-rule-paint-order: column-over-row;
139+
rule-overlap: column-over-row;
141140
margin: 0;
142141
}
143142

@@ -147,7 +146,7 @@
147146
row-rule-width: 3px;
148147
row-rule-style: solid;
149148
row-rule-color: var(--rule);
150-
row-rule-outset: 0%;
149+
row-rule-inset: 0;
151150
column-count: 2;
152151
column-gap: 1rem;
153152
column-rule-width: 2px;
@@ -156,7 +155,7 @@
156155
column-fill: auto;
157156
column-height: 10em;
158157
column-rule-break: intersection;
159-
column-rule-outset: -20px;
158+
column-rule-inset: 20px;
160159
}
161160

162161
.sidebar {
@@ -166,7 +165,7 @@
166165
row-rule-width: 1px;
167166
row-rule-style: dotted;
168167
row-rule-color: var(--rule);
169-
gap-rule-paint-order: column-over-row;
168+
rule-overlap: column-over-row;
170169
}
171170

172171
.sidebar section {
@@ -196,13 +195,13 @@
196195
display: grid;
197196
grid-template-columns: repeat(9, 1fr);
198197
gap: 6px;
199-
column-rule-width: repeat(2, 1px) 4px repeat(2, 1px) 4px repeat(2, 1px);
198+
column-rule-width: repeat(2, 1px), 4px, repeat(2, 1px), 4px, repeat(2, 1px);
200199
column-rule-style: solid;
201200
column-rule-color: var(--secondary);
202-
row-rule-width: repeat(2, 1px) 4px repeat(2, 1px) 4px repeat(2, 1px);
201+
row-rule-width: repeat(2, 1px), 4px, repeat(2, 1px), 4px, repeat(2, 1px);
203202
row-rule-style: solid;
204203
row-rule-color: var(--secondary);
205-
gap-rule-paint-order: row-over-column;
204+
rule-overlap: row-over-column;
206205
}
207206

208207
.sudoku .cell {
@@ -246,7 +245,7 @@ <h2>Gap Decorations Start Dev Trials</h2>
246245
the highly anticipated Gap Decorations Module.
247246
This early access program empowers front-end engineers to experiment with powerful new
248247
properties—<strong>column-rule</strong>, <strong>row-rule</strong>, and
249-
<strong>gap-rule-paint-order</strong>—to style gaps in grid, flex, and multicol containers
248+
<strong>rule-overlap</strong>—to style gaps in grid, flex, and multicol containers
250249
without relying on additional markup or pseudo-elements. In these trials, participants can test
251250
<strong>row-rule</strong> support in multicol layouts, leverage <strong>column-wrap</strong>
252251
to achieve sophisticated magazine-style flows, and fine-tune separator styles across
@@ -276,7 +275,7 @@ <h2>Browser Support Expands</h2>
276275
can safely adopt gap decorations in production, delivering consistent visual
277276
experiences across platforms. Developers are encouraged to experiment with
278277
combinations of <strong>column-rule</strong>, <strong>row-rule</strong>,
279-
and paint-order options to craft unique layouts that were previously only
278+
and overlap options to craft unique layouts that were previously only
280279
achievable with complex workarounds.</p>
281280
</article>
282281
</div>

css-gap-decorations/guitar-fretboard.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
row-gap: var(--fret-width);
2626
column-rule: var(--string-width) solid white;
2727
row-rule: var(--fret-width) solid #737778;
28-
row-rule-outset: var(--space-around-neck);
29-
gap-rule-paint-order: column-over-row;
28+
row-rule-inset: calc(-1 * var(--space-around-neck));
29+
rule-overlap: column-over-row;
3030

3131
background-image:
3232
radial-gradient(circle, white 0 calc(var(--space-between-strings) / 4), transparent 0),

css-gap-decorations/notebook.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
grid-template-rows: repeat(30, 1fr);
2525
gap: 2px;
2626

27-
gap-rule-paint-order: column-over-row;
27+
rule-overlap: column-over-row;
2828
column-rule: solid black 1.5px;
2929
column-rule-break: spanning-item;
3030
row-rule:
@@ -137,8 +137,8 @@ <h2>New Properties & Behavior:</h2>
137137
<p>row-rule, column-rule to define width, style, and color of decorations.</p>
138138
<p>Complex patterns with repeat().</p>
139139
<p>gap-rule-break to control where decorations start/end.</p>
140-
<p>gap-rule-paint-order to define overlap order between row and column.</p>
141-
<p>gap-rule-outset to adjust start/end positions.</p>
140+
<p>rule-overlap to define overlap order between row and column.</p>
141+
<p>rule-inset to adjust start/end positions.</p>
142142
</main>
143143
<footer>
144144
<p>Summary:</p>

css-gap-decorations/personal-site.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
gap: 4rem;
6060
row-rule: 2px solid #999;
6161
column-rule: 2px solid #999;
62-
column-rule-outset: 0;
62+
column-rule-inset: 0;
6363
}
6464

6565
main>* {

css-gap-decorations/playground.html

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@
130130
column-rule-width: 2px;
131131
column-rule-style: solid;
132132
column-rule-color: #555;
133-
column-rule-outset: 0px;
133+
column-rule-inset: 0;
134134
row-rule-width: 2px;
135135
row-rule-style: dashed;
136136
row-rule-color: #888;
137-
row-rule-outset: 0%;
138-
gap-rule-paint-order: column-over-row;
137+
row-rule-inset: 0;
138+
rule-overlap: column-over-row;
139139
}
140140

141141
.multicol h3 {
@@ -169,12 +169,12 @@
169169
row-rule-width: 4px;
170170
row-rule-style: dotted;
171171
row-rule-color: var(--flex-row-rule-color);
172-
row-rule-outset: 0%;
172+
row-rule-inset: 0;
173173
column-rule-width: 4px;
174174
column-rule-style: dotted;
175175
column-rule-color: var(--flex-col-rule-color);
176-
column-rule-outset: 0px;
177-
gap-rule-paint-order: row-over-column;
176+
column-rule-inset: 0;
177+
rule-overlap: row-over-column;
178178
}
179179

180180
.flex-item {
@@ -208,12 +208,12 @@
208208
row-rule-width: 3px;
209209
row-rule-style: solid;
210210
row-rule-color: var(--accent);
211-
row-rule-outset: 0%;
211+
row-rule-inset: 0;
212212
column-rule-width: 3px;
213213
column-rule-style: solid;
214214
column-rule-color: var(--grid-rule-color);
215-
column-rule-outset: 0px;
216-
gap-rule-paint-order: row-over-column;
215+
column-rule-inset: 0;
216+
rule-overlap: row-over-column;
217217
}
218218

219219
.grid-item {
@@ -253,7 +253,7 @@ <h1>CSS Gap Decorations playground</h1>
253253
<p>This interactive demo showcases the features of the <a href="https://drafts.csswg.org/css-gaps-1/"
254254
target="_blank">
255255
CSS Gaps Decorations Module Level 1</a>.
256-
Use the controls to tweak gap, rule, and paint-order properties in real time
256+
Use the controls to tweak gap, rule, and overlap properties in real time
257257
and see how they affect <a href="#grid">grid</a>, <a href="#flex">flex</a>, and <a href="#multicolumn">multicolumn</a> layouts.
258258
</p>
259259
<p>
@@ -276,8 +276,8 @@ <h2 id="grid">Grid Layout</h2>
276276
<label>Row-rule-width (px): <output id="grRowRuleWVal">3</output></label>
277277
<input type="range" min="0" max="20" value="3" data-prop="row-rule-width" data-unit="px"
278278
oninput="grRowRuleWVal.value=this.value" />
279-
<label>Row-rule-outset (%): <output id="grRowRuleOVal">0</output>%</label>
280-
<input type="range" min="0" max="100" value="0" data-prop="row-rule-outset" data-unit="%"
279+
<label>Row-rule-inset (%): <output id="grRowRuleOVal">0</output>%</label>
280+
<input type="range" min="0" max="100" value="0" data-prop="row-rule-inset" data-unit="%"
281281
oninput="grRowRuleOVal.value=this.value" />
282282
<label>Row-rule-style:</label>
283283
<select data-prop="row-rule-style">
@@ -296,8 +296,8 @@ <h2 id="grid">Grid Layout</h2>
296296
<label>Column-rule-width (px): <output id="grColRuleWVal">3</output></label>
297297
<input type="range" min="0" max="20" value="3" data-prop="column-rule-width" data-unit="px"
298298
oninput="grColRuleWVal.value=this.value" />
299-
<label>Column-rule-outset (px): <output id="grColRuleOVal">0</output></label>
300-
<input type="range" min="-50" max="50" value="0" data-prop="column-rule-outset" data-unit="px"
299+
<label>Column-rule-inset (px): <output id="grColRuleOVal">0</output></label>
300+
<input type="range" min="-50" max="50" value="0" data-prop="column-rule-inset" data-unit="px"
301301
oninput="grColRuleOVal.value=this.value" />
302302
<label>Column-rule-style:</label>
303303
<select data-prop="column-rule-style">
@@ -313,8 +313,8 @@ <h2 id="grid">Grid Layout</h2>
313313
<option value="intersection">intersection</option>
314314
<option value="spanning-item">spanning-item</option>
315315
</select>
316-
<label>Gap-rule-paint-order:</label>
317-
<select data-prop="gap-rule-paint-order">
316+
<label>Rule-overlap:</label>
317+
<select data-prop="rule-overlap">
318318
<option value="row-over-column">row-over-column</option>
319319
<option value="column-over-row">column-over-row</option>
320320
</select>
@@ -345,8 +345,8 @@ <h2 id="flex">Flex Layout</h2>
345345
<label>Row-rule-width (px): <output id="fxRowRuleWVal">4</output></label>
346346
<input type="range" min="0" max="20" value="4" data-prop="row-rule-width" data-unit="px"
347347
oninput="fxRowRuleWVal.value=this.value" />
348-
<label>Row-rule-outset (%): <output id="fxRowRuleOVal">0</output>%</label>
349-
<input type="range" min="0" max="100" value="0" data-prop="row-rule-outset" data-unit="%"
348+
<label>Row-rule-inset (%): <output id="fxRowRuleOVal">0</output>%</label>
349+
<input type="range" min="0" max="100" value="0" data-prop="row-rule-inset" data-unit="%"
350350
oninput="fxRowRuleOVal.value=this.value" />
351351
<label>Row-rule-style:</label>
352352
<select data-prop="row-rule-style">
@@ -359,8 +359,8 @@ <h2 id="flex">Flex Layout</h2>
359359
<label>Column-rule-width (px): <output id="fxColRuleWVal">4</output></label>
360360
<input type="range" min="0" max="20" value="4" data-prop="column-rule-width" data-unit="px"
361361
oninput="fxColRuleWVal.value=this.value" />
362-
<label>Column-rule-outset (px): <output id="fxColRuleOVal">0</output></label>
363-
<input type="range" min="-50" max="50" value="0" data-prop="column-rule-outset" data-unit="px"
362+
<label>Column-rule-inset (px): <output id="fxColRuleOVal">0</output></label>
363+
<input type="range" min="-50" max="50" value="0" data-prop="column-rule-inset" data-unit="px"
364364
oninput="fxColRuleOVal.value=this.value" />
365365
<label>Column-rule-style:</label>
366366
<select data-prop="column-rule-style">
@@ -382,8 +382,8 @@ <h2 id="flex">Flex Layout</h2>
382382
<option value="intersection">intersection</option>
383383
<option value="spanning-item">spanning-item</option>
384384
</select>
385-
<label>Gap-rule-paint-order:</label>
386-
<select data-prop="gap-rule-paint-order">
385+
<label>Rule-overlap:</label>
386+
<select data-prop="rule-overlap">
387387
<option value="row-over-column">row-over-column</option>
388388
<option value="column-over-row">column-over-row</option>
389389
</select>
@@ -409,8 +409,8 @@ <h2 id="multicolumn">Multicolumn Layout</h2>
409409
<label>Column-rule-width (px): <output id="mcColRuleWVal">2</output></label>
410410
<input type="range" min="0" max="20" value="2" data-prop="column-rule-width" data-unit="px"
411411
oninput="mcColRuleWVal.value=this.value" />
412-
<label>Column-rule-outset (px): <output id="mcColRuleOVal">0</output></label>
413-
<input type="range" min="-50" max="50" value="0" data-prop="column-rule-outset" data-unit="px"
412+
<label>Column-rule-inset (px): <output id="mcColRuleOVal">0</output></label>
413+
<input type="range" min="-50" max="50" value="0" data-prop="column-rule-inset" data-unit="px"
414414
oninput="mcColRuleOVal.value=this.value" />
415415
<label>Column-rule-style:</label>
416416
<select data-prop="column-rule-style">
@@ -429,8 +429,8 @@ <h2 id="multicolumn">Multicolumn Layout</h2>
429429
<label>Row-rule-width (px): <output id="mcRowRuleWVal">2</output></label>
430430
<input type="range" min="0" max="20" value="2" data-prop="row-rule-width" data-unit="px"
431431
oninput="mcRowRuleWVal.value=this.value" />
432-
<label>Row-rule-outset (%): <output id="mcRowRuleOVal">0</output>%</label>
433-
<input type="range" min="0" max="100" value="0" data-prop="row-rule-outset" data-unit="%"
432+
<label>Row-rule-inset (%): <output id="mcRowRuleOVal">0</output>%</label>
433+
<input type="range" min="0" max="100" value="0" data-prop="row-rule-inset" data-unit="%"
434434
oninput="mcRowRuleOVal.value=this.value" />
435435
<label>Row-rule-style:</label>
436436
<select data-prop="row-rule-style">
@@ -454,8 +454,8 @@ <h2 id="multicolumn">Multicolumn Layout</h2>
454454
<option value="intersection">intersection</option>
455455
<option value="spanning-item">spanning-item</option>
456456
</select>
457-
<label>Gap-rule-paint-order:</label>
458-
<select data-prop="gap-rule-paint-order">
457+
<label>Rule-overlap:</label>
458+
<select data-prop="rule-overlap">
459459
<option value="column-over-row">column-over-row</option>
460460
<option value="row-over-column">row-over-column</option>
461461
</select>
@@ -464,15 +464,15 @@ <h2 id="multicolumn">Multicolumn Layout</h2>
464464
<h3>Exploring Gap Decorations</h3>
465465
<p>Gap decorations provide a flexible way to visually separate content without extra markup. Columns adapt
466466
dynamically to viewport size, maintaining readability.</p>
467-
<p>Use <strong>column-rule</strong> properties to style separators, control their outset, and define how they
467+
<p>Use <strong>column-rule</strong> properties to style separators, control their inset, and define how they
468468
interact with multi-column spans.</p>
469469
<blockquote>“Effective gap decorations enhance layout clarity while preserving semantic structure.”</blockquote>
470470
<ul>
471471
<li>Adjust <em>column-gap</em> for spacing.</li>
472-
<li>Tweak <em>column-rule-width</em> and <em>column-rule-outset</em>.</li>
472+
<li>Tweak <em>column-rule-width</em> and <em>column-rule-inset</em>.</li>
473473
<li>Control break behavior with <em>row-rule-break</em> and <em>column-rule-break</em>.</li>
474474
</ul>
475-
<p>Combine with <code>gap-rule-paint-order</code> to layer rules in complex layouts.</p>
475+
<p>Combine with <code>rule-overlap</code> to layer rules in complex layouts.</p>
476476
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nec est at dolor scelerisque elementum.</p>
477477
<p>Mauris posuere, libero non suscipit consectetur, odio tortor vulputate mi, vitae consequat justo arcu non ex.
478478
</p>

css-gap-decorations/the-daily-oddity.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147

148148
column-rule: 2px solid var(--text);
149149
column-rule-break: intersection;
150-
column-rule-outset: 0;
150+
column-rule-inset: 0;
151151

152152
row-rule: 2px solid var(--text);
153153
}
@@ -249,7 +249,7 @@
249249
grid-template-columns: 5fr 1fr;
250250
grid-template-rows: min-content 1fr;
251251
column-rule: 1px solid color-mix(in srgb, var(--back) 30%, var(--text));
252-
column-rule-outset: -0.5rem;
252+
column-rule-inset: 0.5rem;
253253
}
254254

255255
footer h3,

0 commit comments

Comments
 (0)