Skip to content

Commit 05e681f

Browse files
committed
[css-gaps-1][explainer] Reformat image tags so they display correctly on drafts.csswg.org
1 parent 22a9ea3 commit 05e681f

File tree

1 file changed

+30
-31
lines changed

1 file changed

+30
-31
lines changed

css-gaps-1/explainer.md

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Shorthands are also available to combine the width, style, and color properties.
154154
row-rule-color: red, blue;
155155
}
156156
```
157-
<image src="images/example-red-blue.png">
157+
![](images/example-red-blue.png)
158158

159159
```css
160160
.alternate-heavy-light {
@@ -165,7 +165,7 @@ Shorthands are also available to combine the width, style, and color properties.
165165
row-rule: 2px solid black, 1px solid lightgray;
166166
}
167167
```
168-
<image src="images/example-heavy-light.png">
168+
![](images/example-heavy-light.png)
169169

170170
Like column rules in multi-column layout, gap decorations in other layout
171171
containers do not take up space and do not affect the layout of items in the
@@ -192,7 +192,7 @@ simpler for gap decorations as there are fewer unknowns to consider.
192192
}
193193
```
194194

195-
<image src="images/example-width-style-color.png">
195+
![](images/example-width-style-color.png)
196196

197197
### Interaction with intersection types
198198

@@ -206,21 +206,21 @@ behind the item.
206206
rule-break: normal;
207207
}
208208
```
209-
<image src="images/example-break-normal.png">
209+
![](images/example-break-normal.png)
210210

211211
```css
212212
.all-intersections {
213213
rule-break: intersection;
214214
}
215215
```
216-
<image src="images/example-break-intersection.png">
216+
![](images/example-break-intersection.png)
217217

218218
```css
219219
.no-intersections {
220220
rule-break: none;
221221
}
222222
```
223-
<image src="images/example-break-none.png">
223+
![](images/example-break-none.png)
224224

225225
### Extending or shortening gap decoration segments
226226

@@ -239,7 +239,7 @@ with each endpoint at the innermost edge of the intersection.
239239
}
240240
```
241241

242-
<image src="images/example-grid-with-spans.png">
242+
![](images/example-grid-with-spans.png)
243243

244244
```css
245245
.flex {
@@ -251,7 +251,7 @@ with each endpoint at the innermost edge of the intersection.
251251
column-rule: 6px solid blue;
252252
}
253253
```
254-
<image src="images/example-flex.png">
254+
![](images/example-flex.png)
255255

256256
Authors may adjust the positions of endpoints relative to gap intersections,
257257
either as a fixed distance or as a percentage of the width of the intersection.
@@ -264,23 +264,23 @@ into the intersection and positive values receding from it.
264264
column-rule-inset: 0px;
265265
}
266266
```
267-
<image src="images/example-column-inset-0px.png">
267+
![](images/example-column-inset-0px.png)
268268

269269
```css
270270
.inset-5px {
271271
column-rule-break: intersection;
272272
column-rule-inset: 5px;
273273
}
274274
```
275-
<image src="images/example-column-inset-5px.png">
275+
![](images/example-column-inset-5px.png)
276276

277277
```css
278278
.inset-negative-5px {
279279
column-rule-break: intersection;
280280
column-rule-inset: -5px;
281281
}
282282
```
283-
<image src="images/example-column-inset-minus-5px.png">
283+
![](images/example-column-inset-minus-5px.png)
284284

285285
Authors may also adjust endpoints more granularly, making a distinction between "edge"
286286
endpoints (which fall on the edge of the container),
@@ -294,7 +294,7 @@ and "interior" endpoints (any endpoint that is not an "edge").
294294
}
295295
```
296296

297-
<image src="images/example-column-interior-inset-5px.png">
297+
![](images/example-column-interior-inset-5px.png)
298298

299299
Similarly, authors can have even more granular control to adjust the positions of endpoints,
300300
making a distinction between "start" and "end" endpoints, in addition to the "edge" and "interior" distinction.
@@ -310,7 +310,7 @@ making a distinction between "start" and "end" endpoints, in addition to the "ed
310310
}
311311
```
312312

313-
<image src="images/example-column-start-end-edge-interior-insets.png">
313+
![](images/example-column-start-end-edge-interior-insets.png)
314314

315315
### Paint order
316316

@@ -328,7 +328,7 @@ rule-overlap: [ row-over-column | column-over-row ]
328328
rule-overlap: row-over-column;
329329
}
330330
```
331-
<image src="images/example-row-over-column.png">
331+
![](images/example-row-over-column.png)
332332

333333
```css
334334
.column-over-row {
@@ -337,7 +337,7 @@ rule-overlap: [ row-over-column | column-over-row ]
337337
rule-overlap: column-over-row;
338338
}
339339
```
340-
<image src="images/example-column-over-row.png">
340+
![](images/example-column-over-row.png)
341341

342342
### Decorations next to empty areas
343343

@@ -367,7 +367,7 @@ The `*-rule-visibility-items` properties allow control over this.
367367
</div>
368368
```
369369

370-
<image src="images/example-rule-visibility-items-all.png">
370+
![](images/example-rule-visibility-items-all.png)
371371

372372
```css
373373
.container {
@@ -391,7 +391,7 @@ The `*-rule-visibility-items` properties allow control over this.
391391
</div>
392392
```
393393

394-
<image src="images/example-rule-visibility-items-around.png">
394+
![](images/example-rule-visibility-items-around.png)
395395

396396
```css
397397
.container {
@@ -415,7 +415,7 @@ The `*-rule-visibility-items` properties allow control over this.
415415
</div>
416416
```
417417

418-
<image src="images/example-rule-visibility-items-between.png">
418+
![](images/example-rule-visibility-items-between.png)
419419

420420
Note that `rule-visibility-items` in the examples above is a shorthand
421421
for `column-rule-visibility-items` and `row-rule-visibility-items`,
@@ -444,7 +444,7 @@ which can also be set independently:
444444
</div>
445445
```
446446

447-
<image src="images/example-rule-visibility-items-independent.png">
447+
![](images/example-rule-visibility-items-independent.png)
448448

449449
## Key scenarios
450450

@@ -465,7 +465,7 @@ links to: https://codepen.io/urlyman/pen/yGNOya
465465
}
466466
```
467467

468-
<image src="images/csswg-drafts-issues-2748-issuecomment-446379068.png">
468+
![](images/csswg-drafts-issues-2748-issuecomment-446379068.png)
469469

470470
### Scenario 2: Lines dividing items in both directions of a grid
471471

@@ -477,7 +477,7 @@ https://github.com/w3c/csswg-drafts/issues/2748#issuecomment-595663212
477477
}
478478
```
479479

480-
<image src="images/csswg-drafts-issues-2748-issuecomment-595663212.png">
480+
![](images/csswg-drafts-issues-2748-issuecomment-595663212.png)
481481

482482
### Scenario 3: Segmented gap decorations
483483

@@ -491,8 +491,7 @@ example
491491
}
492492
```
493493

494-
<image
495-
src="images/csswg-drafts-issues-2748-issuecomment-446781218-last-example.png">
494+
![](images/csswg-drafts-issues-2748-issuecomment-446781218-last-example.png)
496495

497496
### Scenario 4: Grid layout with white space in leading columns
498497

@@ -511,7 +510,7 @@ https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/1099
511510
}
512511
```
513512

514-
<image src="images/explainer-issue-1099.png">
513+
![](images/explainer-issue-1099.png)
515514

516515
### Scenario 5: Column decorations only between items
517516

@@ -528,7 +527,7 @@ https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/1100
528527
}
529528
```
530529

531-
<image src="images/explainer-issue-1100.png">
530+
![](images/explainer-issue-1100.png)
532531

533532
## Future ideas
534533

@@ -541,15 +540,15 @@ Examples:
541540

542541
* https://github.com/w3c/csswg-drafts/issues/2748#issuecomment-446781218 - third example
543542

544-
<image src="images/csswg-drafts-issues-2748-issuecomment-446781218-third-example.png">
543+
![](images/csswg-drafts-issues-2748-issuecomment-446781218-third-example.png)
545544

546545
* https://github.com/w3c/csswg-drafts/issues/2748#issuecomment-621983931
547546

548-
<image src="images/csswg-drafts-issues-2748-issuecomment-621983931-first-example.png">
547+
![](images/csswg-drafts-issues-2748-issuecomment-621983931-first-example.png)
549548

550549
* https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/1161
551550

552-
<image src="images/explainer-issue-1161.png">
551+
![](images/explainer-issue-1161.png)
553552

554553
However, unlike `border-image`, gap decoration images need to cover
555554
significantly more cases, such as T intersections and cross intersections. More
@@ -644,7 +643,7 @@ override gaps in the first column with 1px solid blue rules.
644643
}
645644
```
646645

647-
<image src="images/example-multiple-areas.png">
646+
![](images/example-multiple-areas.png)
648647

649648
#### Scenario: Different lines for different gaps, applied to a sub-area of a grid
650649

@@ -660,7 +659,7 @@ https://github.com/w3c/csswg-drafts/issues/2748#issuecomment-595889781
660659
}
661660
```
662661

663-
<image src="images/csswg-drafts-issues-2748-issuecomment-595889781.png">
662+
![](images/csswg-drafts-issues-2748-issuecomment-595889781.png)
664663

665664
#### Scenario: Periodic Table omitting decorations from certain areas
666665

@@ -676,7 +675,7 @@ https://github.com/w3c/csswg-drafts/issues/12024#issuecomment-3086244002
676675
}
677676
```
678677

679-
<image src="images/csswg-drafts-issue-12024-issuecomment-3086244002-first-example.png">
678+
![](images/csswg-drafts-issue-12024-issuecomment-3086244002-first-example.png)
680679

681680
## Dropped ideas
682681

0 commit comments

Comments
 (0)