Skip to content

Commit 65e97f0

Browse files
committed
Editorial fixups suggested by Leif.
1 parent cf83cc4 commit 65e97f0

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

css3-images/Overview.src.html

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ <h2 id="gradients">
501501
<h3 id='linear-gradients'>
502502
Linear Gradients: the ''linear-gradient()'' notation</h3>
503503

504-
<p>A linear gradient is created by specifying a gradient-line and then several
504+
<p>A linear gradient is created by specifying a gradient line and then several
505505
colors placed along that line. The image is constructed by creating an
506-
infinite canvas and painting it with lines perpendicular to the gradient-line,
507-
with the color of the painted line being the color of the gradient-line
506+
infinite canvas and painting it with lines perpendicular to the gradient line,
507+
with the color of the painted line being the color of the gradient line
508508
where the two intersect. This produces a smooth fade from each color to
509509
the next, progressing in the specified direction.</p>
510510

@@ -521,34 +521,34 @@ <h4 class='no-toc' id='linear-gradient-syntax'>
521521

522522
<dfn id='side-or-corner'>&lt;side-or-corner></dfn> = [left | right] || [top | bottom]</code></pre>
523523

524-
<p>The first argument to the function specifies the <dfn>gradient-line</dfn>,
524+
<p>The first argument to the function specifies the <dfn>gradient line</dfn>,
525525
which gives the gradient a direction and determines how color-stops are
526526
positioned. It may be omitted; if so, it defaults to "to bottom".</p>
527527

528-
<p>The <i>gradient-line</i> may be specified in two different ways. The
529-
first is by specifying the angle the <i>gradient-line</i> should assume;
528+
<p>The <i>gradient line</i> may be specified in two different ways. The
529+
first is by specifying the angle the <i>gradient line</i> should assume;
530530
for the purposes of this argument, 0deg points upwards, 90deg points toward
531531
the right, and positive angles go clockwise.
532-
The starting-point and ending-point of the <i>gradient-line</i> are
532+
The starting-point and ending-point of the <i>gradient line</i> are
533533
determined by extending a line in both directions from the center of the
534534
<i>gradient box</i> at the angle specified. In the direction of the angle, the ending-point
535-
is the point on the <i>gradient-line</i> where a line drawn perpendicular
536-
to the <i>gradient-line</i> would intersect the corner of the <i>gradient box</i> in that
535+
is the point on the <i>gradient line</i> where a line drawn perpendicular
536+
to the <i>gradient line</i> would intersect the corner of the <i>gradient box</i> in that
537537
direction. The starting-point is determined identically, except in the
538538
opposite direction of the angle.</p>
539539

540-
<p>Alternately, the direction may be specified with keywords that denote the direction. If the argument is ''to top'', ''to right'', ''to bottom'', or ''to left'', the gradient must be rendered identically to ''0deg'', ''90deg'', ''180deg'', or ''270deg'', respectively. If the argument specifies a corner to angle towards, the gradient must be rendered identically to an angle-based gradient with an angle chosen such that the endpoint of the gradient is in the same quadrant as the indicated corner, and a line drawn perpendicular to the gradient-line through the center of the <i>gradient box</i> intersects the two neighboring corners.</p>
540+
<p>Alternately, the direction may be specified with keywords that denote the direction. If the argument is ''to top'', ''to right'', ''to bottom'', or ''to left'', the gradient must be rendered identically to ''0deg'', ''90deg'', ''180deg'', or ''270deg'', respectively. If the argument specifies a corner to angle towards, the gradient must be rendered identically to an angle-based gradient with an angle chosen such that the endpoint of the gradient is in the same quadrant as the indicated corner, and a line drawn perpendicular to the gradient line through the center of the <i>gradient box</i> intersects the two neighboring corners.</p>
541541

542542
<p class='note'>It is expected that the next level of this module will provide the ability to define the gradient's direction relative to the current text direction and writing-mode.</p>
543543

544544
<p>
545545

546546
<div class=example>
547547
<div style="overflow: hidden">
548-
<img style="float: right; margin-left: 1em;" src='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.]">
548+
<img style="float: right; margin-left: 1em;" src='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.]">
549549
<p>This example illustrates visually how to calculate the
550-
<i>gradient-line</i> from the rules above. This shows the starting
551-
and ending-point of the <i>gradient-line</i>, along with the actual
550+
<i>gradient line</i> from the rules above. This shows the starting
551+
and ending-point of the <i>gradient line</i>, along with the actual
552552
gradient, produced by an element with
553553
''background: linear-gradient(45deg, white, black);''.</p>
554554
<p>Notice how, though the starting-point and ending-point are outside
@@ -560,8 +560,8 @@ <h4 class='no-toc' id='linear-gradient-syntax'>
560560
</div>
561561

562562
<p>The gradient's color stops are typically placed between the starting-point
563-
and ending-point on the <i>gradient-line</i>, but this isn't required - the
564-
<i>gradient-line</i> extends infinitely in both directions. The starting-point
563+
and ending-point on the <i>gradient line</i>, but this isn't required - the
564+
<i>gradient line</i> extends infinitely in both directions. The starting-point
565565
and ending-point are merely arbitrary location markers - the starting-point
566566
defines where 0%, 0px, etc are located when specifying color-stops, and
567567
the ending-point defines where 100% is located. Color-stops are allowed
@@ -588,7 +588,7 @@ <h4 class='no-toc' id='linear-gradient-examples'>
588588
</div>
589589

590590
<div class=example>
591-
<p>This demonstrates the use of an angle in the gradient. Note that, though the angle is not exactly the same as the angle between the corners, the <i>gradient-line</i> is still sized so as to make the gradient yellow exactly at the upper-left corner, and blue exactly at the lower-right corner.</p>
591+
<p>This demonstrates the use of an angle in the gradient. Note that, though the angle is not exactly the same as the angle between the corners, the <i>gradient line</i> is still sized so as to make the gradient yellow exactly at the upper-left corner, and blue exactly at the lower-right corner.</p>
592592

593593
<pre><code>linear-gradient(135deg, yellow, blue);
594594
linear-gradient(-45deg, blue, yellow);</code></pre>
@@ -745,9 +745,9 @@ <h4 class='no-toc' id='radial-gradient-syntax'>
745745
<h4 class="no-toc" id="radial-color-stops">
746746
Placing Color Stops</h4>
747747

748-
<p>Color-stops are placed on a <dfn>gradient-ray</dfn>, similar to the <i>gradient-line</i> of linear gradients. The <i>gradient-ray</i> is anchored at the center of the gradient and extends toward the right. The 0% location is at the start of the <i>gradient-ray</i>, and the 100% location is on the point where the <i>gradient-ray</i> intersects the <i>ending shape</i>. Negative locations can be specified; though negative locations are never directly consulted for rendering, they can affect the color of non-negative locations on the <i>gradient-ray</i> through interpolation. For example, ''radial-gradient(red -50px, yellow 100px)'' produces an elliptical gradient that starts with a reddish-orange color in the center (specifically, #f50) and transitions to yellow. Locations greater than 100% simply specify a location a correspondingly greater distance from the center of the gradient.</p>
748+
<p>Color-stops are placed on a <dfn>gradient ray</dfn>, similar to the <i>gradient line</i> of linear gradients. The <i>gradient ray</i> is anchored at the center of the gradient and extends toward the right. The 0% location is at the start of the <i>gradient ray</i>, and the 100% location is on the point where the <i>gradient ray</i> intersects the <i>ending shape</i>. Negative locations can be specified; though negative locations are never directly consulted for rendering, they can affect the color of non-negative locations on the <i>gradient ray</i> through interpolation. For example, ''radial-gradient(red -50px, yellow 100px)'' produces an elliptical gradient that starts with a reddish-orange color in the center (specifically, #f50) and transitions to yellow. Locations greater than 100% simply specify a location a correspondingly greater distance from the center of the gradient.</p>
749749

750-
<p>When drawing the concentric ellipses of the gradient, the color of each ellipse is the color of the <i>gradient-ray</i> at the point where the ellipse intersects the ray.</p>
750+
<p>When drawing the concentric ellipses of the gradient, the color of each ellipse is the color of the <i>gradient ray</i> at the point where the ellipse intersects the ray.</p>
751751

752752
<h4 class="no-toc" id="degenerate-radials">
753753
Degenerate Radial Gradients</h4>
@@ -880,13 +880,13 @@ <h3 id='color-stop-syntax'>
880880

881881
<pre class=prod><code><dfn>&lt;color-stop></dfn> = &lt;color> [ &lt;percentage> | &lt;length> ]?</code></pre>
882882

883-
<p>Color-stops are points placed along the line defined by the <i>gradient-line</i>
883+
<p>Color-stops are points placed along the line defined by the <i>gradient line</i>
884884
at the beginning of the rule. Color-stops must be specified in order.
885-
Percentages refer to the length of the gradient-line, with 0% being at the
885+
Percentages refer to the length of the gradient line, with 0% being at the
886886
starting point and 100% being at the ending point. Lengths are measured
887887
from the starting-point in the direction of the ending-point. Color-stops
888888
are usually placed between the starting-point and ending-point, but that's
889-
not required; the gradient-line extends infinitely in both directions, and
889+
not required; the gradient line extends infinitely in both directions, and
890890
a color-stop can be placed at any position on the line.</p>
891891

892892
<p>At each color-stop, the line is the color of the color-stop. Between
@@ -1270,13 +1270,13 @@ <h3 id="object-fit">
12701270
the content box.</p>
12711271

12721272
<div class="figure">
1273-
<p><img src="img_scale.png" style="border: thin solid black;" alt=""></p>
1273+
<img src="img_scale.png" style="border: thin solid black;" alt>
12741274

12751275
<p class="caption">An example showing how four of the values of
12761276
'object-fit' cause the replaced element (blue figure) to be scaled to fit
1277-
its height/width box (shownwith a green background), using the initial
1278-
value for 'object-position'. The fifth value, '<span class='css'>scale-down</span>,
1279-
in this case looks identical to '<span class='css'>contain</span>.</p>
1277+
its height/width box (shown with a green background), using the initial
1278+
value for 'object-position'. The fifth value, ''scale-down'',
1279+
in this case looks identical to ''contain''.</p>
12801280
</div>
12811281

12821282
<p class='issue'>Find some good use-cases and make examples out of them.</p>

0 commit comments

Comments
 (0)