|
1 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 |
|
3 | 3 | <html lang=en> |
4 | | - <head profile="http://www.w3.org/2006/03/hcard"> |
| 4 | + <head |
| 5 | + profile="http://dublincore.org/documents/2008/08/04/dc-html/ http://www.w3.org/2006/03/hcard"> |
5 | 6 | <meta content="text/html; charset=utf-8" http-equiv=Content-Type> |
6 | 7 | <title>CSS Image Values and Replaced Content Module Level 3</title> |
7 | 8 |
|
| 9 | + <link href="http://purl.org/dc/terms/" rel=schema.dcterms> |
| 10 | + <link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" |
| 11 | + rel=dcterms.rights> |
| 12 | + <meta content="CSS Image Values and Replaced Content Module Level 3" |
| 13 | + name=dcterms.title> |
| 14 | + <meta content=text name=dcterms.type> |
| 15 | + <meta content=2013-09-11 name=dcterms.date> |
| 16 | + <meta |
| 17 | + content="<span class="p-given-name given-name">Elika</span> <abbr class="p-additional-name additional-name">J.</abbr> <span class="p-family-name family-name">Etemad</span>" |
| 18 | + name=dcterms.creator> |
| 19 | + <meta |
| 20 | + content="<span class="p-given-name given-name">Tab</span> <span class="p-family-name family-name">Atkins</span> <span class="p-honorific-suffix honorific-suffix">Jr.</span>" |
| 21 | + name=dcterms.creator> |
| 22 | + <meta content=W3C name=dcterms.publisher> |
| 23 | + <meta content="http://dev.w3.org/csswg/css3-images/" |
| 24 | + name=dcterms.identifier> |
8 | 25 | <link href="#contents" rel=contents> |
9 | 26 | <link href="#index" rel=index> |
10 | 27 | <link href="../default.css" rel=stylesheet type="text/css"> |
@@ -1007,6 +1024,23 @@ <h4 class=no-toc id=linear-gradient-syntax><span class=secno>4.1.1. </span> |
1007 | 1024 | </div> |
1008 | 1025 | </div> |
1009 | 1026 |
|
| 1027 | + <div class=note> |
| 1028 | + <p>Given: |
| 1029 | + |
| 1030 | + <ul> |
| 1031 | + <li> <var>A</var> the angle defining the gradient line’s direction such |
| 1032 | + that 0 degrees points upwards and positive angles represent clockwise |
| 1033 | + rotation, |
| 1034 | + |
| 1035 | + <li><var>W</var> the width of the gradient box, |
| 1036 | + |
| 1037 | + <li><var>H</var> the height of the gradient box, |
| 1038 | + </ul> |
| 1039 | + |
| 1040 | + <p> The length of the gradient line (between the starting and ending |
| 1041 | + point) is: <code>abs(W * sin(A)) + abs(H * cos(A))</code> |
| 1042 | + </div> |
| 1043 | + |
1010 | 1044 | <p>The gradient's color stops are typically placed between the starting |
1011 | 1045 | point and ending point on the <a href="#gradient-line"><i>gradient |
1012 | 1046 | line</i></a>, but this isn't required - the <a |
@@ -2079,7 +2113,7 @@ <h3 id=the-object-fit><span class=secno>5.5. </span> Sizing Objects: the |
2079 | 2113 | class=property>object-position</code></a>’ property for positioning the |
2080 | 2114 | object with respect to the content box. |
2081 | 2115 |
|
2082 | | - <div class=figure> <img alt src="img_scale.png" |
| 2116 | + <div class=figure> <img alt=alt src="img_scale.png" |
2083 | 2117 | style="border: thin solid black;"> |
2084 | 2118 | <p class=caption>An example showing how four of the values of ‘<a |
2085 | 2119 | href="#object-fit"><code class=property>object-fit</code></a>’ cause |
|
0 commit comments