Skip to content

Commit 5a2340f

Browse files
committed
[css-align] Swap out the hand-drawn images for SVG.
--HG-- extra : rebase_source : ab787c1a1c0e2bbef5a981876fbfe1b960e4be93
1 parent e081bbe commit 5a2340f

8 files changed

Lines changed: 228 additions & 205 deletions

File tree

css-align/Overview.html

Lines changed: 171 additions & 198 deletions
Large diffs are not rendered by default.

css-align/Overview.src.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-[STATUS].css">
1111
<style type="text/css">
1212
.issue th:first-child { text-align: left !important; }
13-
[rowspan] > img { max-height: 4em; float: right; }
13+
[rowspan] > img { float: right; }
1414
[rowspan] { vertical-align: middle; }
1515
small { display: block; }
1616
</style>
@@ -166,7 +166,7 @@ <h2 id="overview">
166166
<tbody>
167167
<tr><th>'justify-content'
168168
<td>inline
169-
<td rowspan=2><img src="content-target.jpg" alt="">content within element <small>(effectively adjusts padding)</small>
169+
<td rowspan=2><img src="images/content-example.svg" width=106 height=106 alt="">content within element <small>(effectively adjusts padding)</small>
170170
<td>block containers and flex containers
171171
<tr><th>'align-content'
172172
<td>stacking
@@ -175,7 +175,7 @@ <h2 id="overview">
175175
<tbody>
176176
<tr><th>'justify-self'
177177
<td>inline
178-
<td rowspan=2><img src="self-target.jpg" alt=""> element within parent <small>(effectively adjusts margins)</small>
178+
<td rowspan=2><img src="images/self-example.svg" width=106 height=106 alt=""> element within parent <small>(effectively adjusts margins)</small>
179179
<td>block-level elements and grid items
180180
<tr><th>'align-self'
181181
<td>stacking
@@ -184,7 +184,7 @@ <h2 id="overview">
184184
<tbody>
185185
<tr><th>'justify-items'
186186
<td>inline
187-
<td rowspan=2><img src="child-target.jpg" alt=""> items inside element <small>(controls child items&rsquo; ''align/justify-self: auto'')</small>
187+
<td rowspan=2><img src="images/items-example.svg" width=106 height=106 alt=""> items inside element <small>(controls child items&rsquo; ''align/justify-self: auto'')</small>
188188
<td>grid containers
189189
<tr><th>'align-items'
190190
<td>stacking
@@ -499,7 +499,7 @@ <h2 id='content-distribution'>
499499
<p>The 'justify-content' and 'align-content' properties control alignment of the box's content within the box.
500500

501501
<div class="figure">
502-
<p><img alt="Diagram showing that the alignment of the content within the element is affected." src="content-target.jpg">
502+
<p><img alt="Diagram showing that the alignment of the content within the element is affected." src="images/content-example.svg" width=212 height=212>
503503
</div>
504504

505505
<table class=propdef>
@@ -649,7 +649,7 @@ <h2 id='self-alignment'>
649649
The 'justify-self' and 'align-self' properties control alignment of the box within its containing block.
650650

651651
<div class="figure">
652-
<p><img alt="Diagram showing that the alignment of the element within its containing block is affected." src="self-target.jpg">
652+
<p><img alt="Diagram showing that the alignment of the element within its containing block is affected." src="images/self-example.svg" width=212 height=212>
653653
</div>
654654

655655
<h3 id='justify-self-property'>
@@ -931,7 +931,7 @@ <h2 id='default-alignment'>
931931
The 'align-items' and 'justify-items' properties set the default 'align-self' and 'justify-self' behavior of the items contained by the element.
932932

933933
<div class="figure">
934-
<p><img alt="Diagram showing that the alignment of grid items within the element is affected." src="child-target.jpg">
934+
<p><img alt="Diagram showing that the alignment of grid items within the element is affected." src="images/items-example.svg" width=212 height=212>
935935
</div>
936936

937937
<h3 id='justify-items-property'>

css-align/child-target.jpg

-18.6 KB
Binary file not shown.

css-align/content-target.jpg

-16 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Loading

css-align/images/items-example.svg

Lines changed: 15 additions & 0 deletions
Loading

css-align/images/self-example.svg

Lines changed: 14 additions & 0 deletions
Loading

css-align/self-target.jpg

-11.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)