Skip to content

Commit af302b4

Browse files
authored
[css-images-4][editorial] Improved examples for stripes() function (#9749)
Used SVGs instead of PNGs, aligned the file names with the rest of the assets and removed the alternative text because it's unnecessary
1 parent aaa2783 commit af302b4

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

css-images-4/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ Color Stop “Fixup”</h4>
20362036
giving red 1 share and green 2 shares of the 300px remaining
20372037
after subtracting blue's 100px from the 400px total.
20382038

2039-
<img src="images/stripes-example-33-1.png" style="height:1em; width:400px;" alt="example 1">
2039+
<img src="images/stripes1.svg" style="height:1em; width:400px;" alt="">
20402040

20412041
On the other hand,
20422042
''stripes(red .1fr, green .2fr, blue 100px)''
@@ -2049,7 +2049,7 @@ Color Stop “Fixup”</h4>
20492049
which is then distributed in the 1:2 ratio
20502050
dictated by the <<flex>> values.
20512051

2052-
<img src="images/example33-2.png" style="height: 1em; width:400px;" alt="example 2">
2052+
<img src="images/stripes2.svg" style="height:1em; width:400px;" alt="">
20532053

20542054
(This is similar to how [=flex layout=] deals with small <<flex>> sums on a line,
20552055
and ensures smoothly continuous behavior

css-images-4/images/example33-2.png

-20.2 KB
Binary file not shown.
-4.6 KB
Binary file not shown.

css-images-4/images/stripes1.svg

Lines changed: 5 additions & 0 deletions
Loading

css-images-4/images/stripes2.svg

Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)