Skip to content

Commit e9ff05c

Browse files
committed
Fixed ambiguity in linear gradient serialization.
1 parent 581a482 commit e9ff05c

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

css3-images/Overview.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,8 +1944,12 @@ <h3 id=serializing-gradients><span class=secno>7.6. </span>Serializing
19441944
keyword, serialize the keyword and append it to s.
19451945

19461946
<li>Otherwise, if the first argument to the gradient function was two
1947-
keywords, serialize both keywords. Append them, separated by a space
1948-
" ", to s.
1947+
keywords, serialize the vertical keyword (&lsquo;<code
1948+
class=css>top</code>&rsquo; or &lsquo;<code
1949+
class=css>bottom</code>&rsquo;) and append it to s, then append a
1950+
space " " to s, then serialize the horizontal keyword (&lsquo;<code
1951+
class=css>left</code>&rsquo; or &lsquo;<code
1952+
class=css>right</code>&rsquo;) and append it to s.
19491953

19501954
<li>Otherwise, if the first argument to the gradient function was an
19511955
&lt;angle>, serialize the &lt;angle> and append it to s.

css3-images/Overview.src.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,8 +1365,9 @@ <h3 id="serializing-gradients">Serializing Gradients</h3>
13651365
keyword, serialize the keyword and append it to s.</li>
13661366

13671367
<li>Otherwise, if the first argument to the gradient function was
1368-
two keywords, serialize both keywords. Append them, separated by
1369-
a space " ", to s.</li>
1368+
two keywords, serialize the vertical keyword (''top'' or ''bottom'')
1369+
and append it to s, then append a space " " to s, then serialize
1370+
the horizontal keyword (''left'' or ''right'') and append it to s.</li>
13701371

13711372
<li>Otherwise, if the first argument to the gradient function was
13721373
an &lt;angle>, serialize the &lt;angle> and append it to s.</li>

0 commit comments

Comments
 (0)