|
22 | 22 |
|
23 | 23 | <h1>CSS Backgrounds and Borders Module Level 3</h1> |
24 | 24 |
|
25 | | - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 31 July 2009</h2> |
| 25 | + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 August 2009</h2> |
26 | 26 |
|
27 | 27 | <dl> |
28 | 28 | <dt>This version: |
29 | 29 |
|
30 | | - <dd><!-- <a href="http://www.w3.org/TR/2009/WD-css3-background-20090731">http://www.w3.org/TR/2009/WD-css3-background-20090731</a></dd> --> |
| 30 | + <dd><!-- <a href="http://www.w3.org/TR/2009/WD-css3-background-20090801">http://www.w3.org/TR/2009/WD-css3-background-20090801</a></dd> --> |
31 | 31 | <a |
32 | 32 | href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a> |
33 | 33 |
|
@@ -3600,10 +3600,44 @@ <h3 id=the-box-shadow><span class=secno>6.3 </span>The ‘<code |
3600 | 3600 | <p>If the box has a nonzero <span class=property>‘<code |
3601 | 3601 | class=property><a |
3602 | 3602 | href="#border-radius">border-radius</a></code>’</span>, the shadow |
3603 | | - is rounded in the same way. If an element has multiple boxes, all of them |
3604 | | - get drop shadows, but shadows are only drawn where borders would also be |
3605 | | - drawn, see ‘<code class=property><a |
3606 | | - href="#border-break">border-break</a></code>’. |
| 3603 | + is rounded in the same way. |
| 3604 | + |
| 3605 | + <div class=issue> |
| 3606 | + <p><strong>This is still <a |
| 3607 | + href="http://lists.w3.org/Archives/Public/www-style/2009Jul/0120.html">under |
| 3608 | + discussion</a>. Please send comments to www-style.</strong></p> |
| 3609 | + |
| 3610 | + <p>However, if the box has a border-image, the shadows drawn differently: |
| 3611 | + they are masked by the border-image instead of the border area as |
| 3612 | + follows. |
| 3613 | + |
| 3614 | + <ul> |
| 3615 | + <li>For an outer shadow, the shadow is created by assuming that the |
| 3616 | + padding box is opaque, and then combining that with the border-image to |
| 3617 | + create an alpha-channel mask for the shadow. Spread values are |
| 3618 | + interpreted as increasing the size of the padding box and causing the |
| 3619 | + border-image mask to be resized accordingly (keeping the number of |
| 3620 | + border-image tiles in each region constant). The resulting shadow is |
| 3621 | + only drawn outside the boundaries of the padding box. |
| 3622 | + |
| 3623 | + <li>For an inner shadow, the shadow is created by assuming that |
| 3624 | + everything outside the border box is opaque, and then combining that |
| 3625 | + with the border-image to create an alpha-channel mask for the shadow. |
| 3626 | + Spread values are interpreted as decreasing the size of the border box |
| 3627 | + and causing the border-image mask to be resized accordingly (keeping the |
| 3628 | + number of border-image tiles in each region constant). The resulting |
| 3629 | + shadow is only drawn inside the boundaries of the border box. |
| 3630 | + </ul> |
| 3631 | + |
| 3632 | + <p>If the UA is unable to create shadows that respect the transparent and |
| 3633 | + partially-transparent aspects of the border-image, it must not create a |
| 3634 | + shadow at all. The UA <em>may</em> ignore spread values when drawing |
| 3635 | + shadows for a border-image.</p> |
| 3636 | + </div> |
| 3637 | + |
| 3638 | + <p>If an element has multiple boxes, all of them get drop shadows, but |
| 3639 | + shadows are only drawn where borders would also be drawn, see ‘<code |
| 3640 | + class=property><a href="#border-break">border-break</a></code>’. |
3607 | 3641 |
|
3608 | 3642 | <p>The shadow effects are applied front-to-back: the first shadow is on top |
3609 | 3643 | and the others are layered behind. Shadows do not influence layout and may |
|
0 commit comments