Skip to content

Commit 6143698

Browse files
francescornfantasai
authored andcommitted
[css-images-4] Add two png images to example 33 to the stripes() function.
1 parent 8a7af26 commit 6143698

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

css-images-4/Overview.bs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,9 @@ Color Stop “Fixup”</h4>
20352035
will result in a 100px red stripe and 200px green stripe,
20362036
giving red 1 share and green 2 shares of the 300px remaining
20372037
after subtracting blue's 100px from the 400px total.
2038-
2038+
<pre class=lang-css>
2039+
<img src="images/stripes_example_33_1.png" style="height:200px; width:400px;" alt="">
2040+
</pre>
20392041
On the other hand,
20402042
''stripes(red .1fr, green .2fr, blue 100px)''
20412043
with a |total width| of ''400px''
@@ -2046,7 +2048,11 @@ Color Stop “Fixup”</h4>
20462048
to obtain only 90px,
20472049
which is then distributed in the 1:2 ratio
20482050
dictated by the <<flex>> values.
2049-
2051+
2052+
<pre class=lang-css>
2053+
<img src="images/stripes_example_33_2.png" style="height:200px; width:400px;" alt="">
2054+
</pre>
2055+
20502056
(This is similar to how [=flex layout=] deals with small <<flex>> sums on a line,
20512057
and ensures smoothly continuous behavior
20522058
as the <<flex>> values approach zero.)
15.2 KB
Loading
28.6 KB
Loading

0 commit comments

Comments
 (0)