Skip to content

Commit

Permalink
[g] (2) Make shadows required.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1752 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 12, 2008
1 parent b97cf35 commit 7423348
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 38 deletions.
30 changes: 12 additions & 18 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -19178,8 +19178,8 @@ notes on what would need to be defined for dashed lines:
values are in coordinate space units. They are not affected by the current
transformation matrix.

<p>When the context is created, the shadow offset attributes initially have
the value <code>0</code>.
<p>When the context is created, the shadow offset attributes must initially
have the value <code>0</code>.

<p>On getting, they must return their current value. On setting, the
attribute being set must be set to the new value, except if the value is
Expand All @@ -19200,8 +19200,7 @@ notes on what would need to be defined for dashed lines:
attribute must be set to the new value, except if the value is negative,
infinite or NaN, in which case the new value must be ignored.

<p>Support for shadows is optional. When they are supported, then, when
shadows are drawn, they must be rendered as follows:
<p>When shadows are drawn, they must be rendered as follows:

<ol>
<li>
Expand Down Expand Up @@ -20524,22 +20523,17 @@ context.getImageData(0, 0, w, h);</pre>
be subjected to the current transformation matrix.

<li>
<p>If shadows are supported:</p>
<p>Render the shadow from image <var title="">A</var>, using the current
shadow styles, creating image <var title="">B</var>.

<ol>
<li>
<p>Render the shadow from image <var title="">A</var>, using the
current shadow styles, creating image <var title="">B</var>.

<li>
<p>Multiply the alpha component of every pixel in <var title="">B</var>
by <code title=dom-context-2d-globalAlpha><a
href="#globalalpha">globalAlpha</a></code>.
<li>
<p>Multiply the alpha component of every pixel in <var title="">B</var>
by <code title=dom-context-2d-globalAlpha><a
href="#globalalpha">globalAlpha</a></code>.

<li>
<p>Within the clipping region, composite <var title="">B</var> over the
current canvas bitmap using the current composition operator.
</ol>
<li>
<p>Within the clipping region, composite <var title="">B</var> over the
current canvas bitmap using the current composition operator.

<li>
<p>Multiply the alpha component of every pixel in <var title="">A</var>
Expand Down
31 changes: 11 additions & 20 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -16793,7 +16793,7 @@ notes on what would need to be defined for dashed lines:
respectively. Their values are in coordinate space units. They are
not affected by the current transformation matrix.</p>

<p>When the context is created, the shadow offset attributes
<p>When the context is created, the shadow offset attributes must
initially have the value <code>0</code>.</p>

<p>On getting, they must return their current value. On setting, the
Expand All @@ -16816,8 +16816,7 @@ notes on what would need to be defined for dashed lines:
value is negative, infinite or NaN, in which case the new value must
be ignored.</p>

<p>Support for shadows is optional. When they are supported, then,
when shadows are drawn, they must be rendered as follows:</p>
<p>When shadows are drawn, they must be rendered as follows:</p>

<ol>

Expand Down Expand Up @@ -18190,25 +18189,17 @@ context.getImageData(0, 0, w, h);</pre>
and the stroke must itself also be subjected to the current
transformation matrix.</p></li>

<li><p>If shadows are supported:</p>
<li><p>Render the shadow from image <var title="">A</var>, using
the current shadow styles, creating image <var
title="">B</var>.</p></li>

<ol>

<li><p>Render the shadow from image <var title="">A</var>, using
the current shadow styles, creating image <var
title="">B</var>.</p></li>

<li><p>Multiply the alpha component of every pixel in <var
title="">B</var> by <code
title="dom-context-2d-globalAlpha">globalAlpha</code>.</p></li>

<li><p>Within the clipping region, composite <var
title="">B</var> over the current canvas bitmap using the current
composition operator.</p></li>

</ol>
<li><p>Multiply the alpha component of every pixel in <var
title="">B</var> by <code
title="dom-context-2d-globalAlpha">globalAlpha</code>.</p></li>

</li>
<li><p>Within the clipping region, composite <var title="">B</var>
over the current canvas bitmap using the current composition
operator.</p></li>

<li><p>Multiply the alpha component of every pixel in <var
title="">A</var> by <code
Expand Down

0 comments on commit 7423348

Please sign in to comment.