Skip to content

Commit af3a04a

Browse files
committed
[css-images-3][editorial] Fixed Bikeshed issues
1 parent a066640 commit af3a04a

1 file changed

Lines changed: 30 additions & 25 deletions

File tree

css-images-3/Overview.bs

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ WPT Path Prefix: css/css-images/
2727
WPT Display: open
2828
</pre>
2929
<pre class=link-defaults>
30-
spec:css-backgrounds-3; type:value; text:center
30+
spec:css-backgrounds-3;
31+
type:property;
32+
text:border-image
33+
text:border-image-repeat
34+
type:value; text:center
3135
</pre>
3236

3337
Introduction {#intro}
@@ -374,7 +378,8 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
374378

375379
<div class=example>
376380
<div style="overflow: hidden">
377-
<img style="float: right; margin-left: 1em;" src='images/gradient-diagram.png' alt="[An image showing a box with a background shading gradually from white in the bottom-left corner to black in the top-right corner. There is a line, illustrating the gradient line, angled at 45 degrees and passing through the center of the box. The starting point and ending point of the gradient line are indicated by the intersection of the gradient line with two additional lines that pass through the bottom-left and top-right corners of the box.]">
381+
<img src="images/gradient-diagram.png" width="454" height="455" style="float: right; margin-left: 1em;"
382+
alt="[An image showing a box with a background shading gradually from white in the bottom-left corner to black in the top-right corner. There is a line, illustrating the gradient line, angled at 45 degrees and passing through the center of the box. The starting point and ending point of the gradient line are indicated by the intersection of the gradient line with two additional lines that pass through the bottom-left and top-right corners of the box.]">
378383

379384
This example illustrates visually how to calculate the <a>gradient line</a> from the rules above.
380385
This shows the starting and ending point of the <a>gradient line</a>,
@@ -430,7 +435,7 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
430435
linear-gradient(to bottom, yellow 0%, blue 100%);
431436
</pre>
432437

433-
<img src="images/linear1.png" alt="" >
438+
<img src="images/linear1.png" width="200" height="100" alt="">
434439
</div>
435440

436441
<div class=example>
@@ -444,7 +449,7 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
444449
linear-gradient(-45deg, blue, yellow);
445450
</pre>
446451

447-
<img src="images/linear3.png" alt="" >
452+
<img src="images/linear3.png" width="200" height="100" alt="">
448453
</div>
449454

450455
<div class=example>
@@ -453,7 +458,7 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
453458

454459
<pre>linear-gradient(yellow, blue 20%, #0f0);</pre>
455460

456-
<img src="images/linear4.png" alt="" >
461+
<img src="images/linear4.png" width="200" height="100" alt="">
457462
</div>
458463

459464
<div class=example id='corner-gradient-example'>
@@ -465,7 +470,7 @@ Linear Gradients: the ''linear-gradient()'' notation {#linear-gradients}
465470

466471
<pre>linear-gradient(to top right, red, white, blue)</pre>
467472

468-
<object data="images/gradient1.svg" width="200" height="100">(Image requires SVG)</object>
473+
<img src="images/gradient1.svg" width="200" height="100" alt="">
469474
</div>
470475

471476

@@ -639,7 +644,7 @@ Radial Gradients: the ''radial-gradient()'' notation {#radial-gradients}
639644
[ [ circle || <<length [0,∞]>> ] [ at <<position>> ]? , |
640645
[ ellipse || <<length-percentage [0,∞]>>{2} ] [ at <<position>> ]? , |
641646
[ [ circle | ellipse ] || <<radial-extent>> ] [ at <<position>> ]? , |
642-
at <<position>></span> ,
647+
at <<position>>,
643648
]?
644649
<<color-stop-list>>
645650
)
@@ -715,23 +720,22 @@ Radial Gradients: the ''radial-gradient()'' notation {#radial-gradients}
715720
radial-gradient(farthest-corner at 50% 50%, yellow, green);
716721
</pre>
717722

718-
<img src="images/radial1.png" alt="" >
723+
<img src="images/radial1.png" width="200" height="100" alt="">
719724

720725
<pre>radial-gradient(circle, yellow, green);</pre>
721726

722-
<img src="images/radial2.png" alt="" >
723-
727+
<img src="images/radial2.png" width="200" height="100" alt="">
724728
<pre>radial-gradient(red, yellow, green);</pre>
725729

726-
<img src="images/radial3.png" alt="" >
730+
<img src="images/radial3.png" width="200" height="100" alt="">
727731
</div>
728732

729733
<div class=example>
730734
This image shows a gradient originating from somewhere other than the center of the box:
731735

732736
<pre>radial-gradient(farthest-side at left bottom, red, yellow 50px, green);</pre>
733737

734-
<img src="images/radial4.png" alt="" >
738+
<img src="images/radial4.png" width="200" height="100" alt="">
735739
</div>
736740

737741
<div class=example>
@@ -742,14 +746,14 @@ Radial Gradients: the ''radial-gradient()'' notation {#radial-gradients}
742746
radial-gradient(20px 30px at 20px 30px, red, yellow, green);
743747
</pre>
744748

745-
<img src="images/radial6.png" alt="" >
749+
<img src="images/radial6.png" width="200" height="100" alt="">
746750

747751
<pre>
748752
radial-gradient(closest-side circle at 20px 30px, red, yellow, green);
749753
radial-gradient(20px 20px at 20px 30px, red, yellow, green);
750754
</pre>
751755

752-
<img src="images/radial7.png" alt="" >
756+
<img src="images/radial7.png" width="200" height="100" alt="">
753757
</div>
754758

755759
<!--
@@ -790,13 +794,13 @@ Repeating Gradients: the ''repeating-linear-gradient()'' and ''repeating-radial-
790794
Repeating gradient syntax is identical to that of non-repeating gradients:
791795

792796
<pre>repeating-linear-gradient(red, blue 20px, red 40px)</pre>
793-
<img src="images/repeating1.png" alt="">
797+
<img src="images/repeating1.png" width="200" height="100" alt="">
794798

795799
<pre>repeating-radial-gradient(red, blue 20px, red 40px)</pre>
796-
<img src="images/repeating2.png" alt="">
800+
<img src="images/repeating2.png" width="200" height="100" alt="">
797801

798802
<pre>repeating-radial-gradient(circle closest-side at 20px 30px, red, yellow, green 100%, yellow 150%, red 200%)</pre>
799-
<img src="images/repeating3.png" alt="">
803+
<img src="images/repeating3.png" width="200" height="100" alt="">
800804

801805
</div>
802806

@@ -1533,7 +1537,7 @@ Sizing Objects: the 'object-fit' property {#the-object-fit}
15331537
See the 'object-position' property for positioning the object with respect to the content box.
15341538

15351539
<figure>
1536-
<img src="images/img_scale.png" style="border: thin solid black;" alt="">
1540+
<img src="images/img_scale.png"width="488" height="116" style="border: thin solid black;" alt="">
15371541

15381542
<figcaption>
15391543
An example showing how four of the values of 'object-fit' cause the replaced element (blue figure)
@@ -1931,32 +1935,33 @@ Determining How To Scale an Image: the 'image-rendering' property {#the-image-re
19311935
For example, given the following small image:
19321936

19331937
<figure>
1934-
<img src="images/pixel-art-small.gif">
1938+
<img src="images/pixel-art-small.gif" width="128" height="64" alt="">
19351939
<figcaption>A small pixel-art image.</figcaption>
19361940
</figure>
19371941

19381942
Scaling it up 3x might look like the following,
19391943
depending on the value of 'image-rendering':
19401944

19411945
<figure>
1942-
<img src="images/pixel-art-small.gif" width=384>
1946+
<img src="images/pixel-art-small.gif" width="384" height="192" alt="">
19431947
<figcaption>The image scaled 3x with ''smooth''</figcaption>
19441948
</figure>
19451949

19461950
<figure>
1947-
<img src="images/pixel-art-nn.png">
1951+
<img src="images/pixel-art-nn.png" width="384" height="192" alt="">
19481952
<figcaption>The image scaled 3x with ''pixelated''</figcaption>
19491953
</figure>
19501954

19511955
<figure>
1952-
<img src="images/pixel-art-smooth.png">
1956+
<img src="images/pixel-art-smooth.png" width="384" height="192" alt="">
19531957
<figcaption>
19541958
The image scaled 3x with ''crisp-edges''
19551959
interpreted with an edge-preserving algorithm.
19561960
<br>
19571961
(Interpreting as [=nearest neighbor=] would give
19581962
the same results as ''pixelated'' in this case.)
19591963
</figcaption>
1964+
</figure>
19601965
</div>
19611966

19621967
<div algorithm>
@@ -1997,17 +2002,17 @@ Determining How To Scale an Image: the 'image-rendering' property {#the-image-re
19972002
they'll act differently:
19982003

19992004
<figure>
2000-
<img src="images/pixel-art-small.gif">
2005+
<img src="images/pixel-art-small.gif" width="128" height="64" alt="">
20012006
<figcaption>The same small pixel-art image as before</figcaption>
20022007
</figure>
20032008

20042009
<figure>
2005-
<img src="images/pixel-art-nn.png" width=320>
2010+
<img src="images/pixel-art-nn.png" width="384" height="192" alt="">
20062011
<figcaption>The image scaled 2.5x with ''pixelated''</figcaption>
20072012
</figure>
20082013

20092014
<figure>
2010-
<img src="images/pixel-art-nn-2p5.png">
2015+
<img src="images/pixel-art-nn-2p5.png" width="384" height="192" alt="">
20112016
<figcaption>
20122017
The image scaled 2.5x with ''crisp-edges''
20132018
interpreted as [=nearest neighbor=]

0 commit comments

Comments
 (0)