Skip to content

Commit e92e423

Browse files
francescornfantasai
authored andcommitted
[css-images-4] I added two png images to example 33 to the stripes() function. I resized each of image to 1em, and added a border on the left and also on the right in the second example in transparent.
1 parent 4fd2aba commit e92e423

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

css-images-4/Overview.bs

+5-7
Original file line numberDiff line numberDiff line change
@@ -2035,9 +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-
<pre class=lang-css>
2039-
<img src="images/stripes_example_33_1.png" style="height:200px; width:400px;" alt="">
2040-
</pre>
2038+
2039+
<img src="images/stripes-example-33-1.png" style="height:1em; width:400px;" alt="">
2040+
20412041
On the other hand,
20422042
''stripes(red .1fr, green .2fr, blue 100px)''
20432043
with a |total width| of ''400px''
@@ -2047,11 +2047,9 @@ Color Stop “Fixup”</h4>
20472047
the value of the sum of the <<flex>> values,
20482048
to obtain only 90px,
20492049
which is then distributed in the 1:2 ratio
2050-
dictated by the <<flex>> values. (Transparent is shown with a border in the example).
2050+
dictated by the <<flex>> values.
20512051

2052-
<pre class=lang-css>
2053-
<img src="images/stripes_example_33_2.png" style="height:200px; width:400px;" alt="">
2054-
</pre>
2052+
<img src="images/stripes-example-33-2.png" style="height: 1em; width:400px;" alt="">
20552053

20562054
(This is similar to how [=flex layout=] deals with small <<flex>> sums on a line,
20572055
and ensures smoothly continuous behavior
4.6 KB
Loading
8.98 KB
Loading

0 commit comments

Comments
 (0)