Skip to content

Commit 0828f14

Browse files
committed
[css-images-4] Add two png images to example 33 to the stripes() function.
1 parent 901356b commit 0828f14

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
@@ -2011,7 +2011,9 @@ Color Stop “Fixup”</h4>
20112011
will result in a 100px red stripe and 200px green stripe,
20122012
giving red 1 share and green 2 shares of the 300px remaining
20132013
after subtracting blue's 100px from the 400px total.
2014-
2014+
<pre class=lang-css>
2015+
<img src="images/stripes_example_33_1.png" style="height:200px; width:300px;" alt="">
2016+
</pre>
20152017
On the other hand,
20162018
''stripes(red .1fr, green .2fr, blue 100px)''
20172019
with a |total width| of ''400px''
@@ -2022,7 +2024,11 @@ Color Stop “Fixup”</h4>
20222024
to obtain only 90px,
20232025
which is then distributed in the 1:2 ratio
20242026
dictated by the <<flex>> values.
2025-
2027+
2028+
<pre class=lang-css>
2029+
<img src="images/stripes_example_33_2.png" style="height:200px; width:300px;" alt="">
2030+
</pre>
2031+
20262032
(This is similar to how [=flex layout=] deals with small <<flex>> sums on a line,
20272033
and ensures smoothly continuous behavior
20282034
as the <<flex>> values approach zero.)
15.2 KB
Loading
28.6 KB
Loading

0 commit comments

Comments
 (0)