Skip to content

Commit 3ec7765

Browse files
committed
[css-background] Regen for spread radius calculation change.
1 parent b7fc21a commit 3ec7765

1 file changed

Lines changed: 30 additions & 22 deletions

File tree

css-backgrounds/Overview.html

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<meta content="CSS Backgrounds and Borders Module Level 3"
1313
name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2013-11-11 name=dcterms.date>
15+
<meta content=2013-11-19 name=dcterms.date>
1616
<meta content="Bert Bos" name=dcterms.creator>
1717
<meta content="Elika J. Etemad" name=dcterms.creator>
1818
<meta content="Brad Kemper" name=dcterms.creator>
@@ -42,12 +42,12 @@
4242

4343
<h1>CSS Backgrounds and Borders Module Level 3</h1>
4444

45-
<h2 class="no-num no-toc">Editor's Draft 11 November 2013</h2>
45+
<h2 class="no-num no-toc">Editor's Draft 19 November 2013</h2>
4646

4747
<dl>
4848
<dt>This version:
4949

50-
<dd><!-- <a href="http://www.w3.org/TR/2013/CR-css3-background-20131111/">http://dev.w3.org/csswg/css3-background/</a> -->
50+
<dd><!-- <a href="http://www.w3.org/TR/2013/CR-css3-background-20131119/">http://dev.w3.org/csswg/css3-background/</a> -->
5151
<a
5252
href="http://dev.w3.org/csswg/css3-background/">http://dev.w3.org/csswg/css3-background/</a>
5353

@@ -4082,17 +4082,17 @@ <h3 id=the-box-shadow><span class=secno>7.2. </span>Drop Shadows: the ‘<a
40824082

40834083
<p>If a spread distance is defined, the shadow perimenter is expanded
40844084
outward (for normal shadows) or contracted inward (for ‘<a
4085-
href="#inset"><code class=css>inset</code></a>’ shadows) by the spread
4086-
distance in the direction normal to the original shadow perimeter.
4087-
Alternatively, the UA may approximate the transformed shadow perimeter
4088-
shape by outsetting (insetting, for inner shadows) the shadow's straight
4089-
edges by the spread distance and increasing (decreasing, for inner
4090-
shadows) and flooring at zero the corner radii by the same amount. For
4091-
corners with a zero border-radius, however, the corner must remain
4092-
sharp—the operation is equivalent to scaling the shadow shape. In any
4093-
case, the effective width and height of the shadowed shape is floored at
4094-
zero. (A zero-sized shadowed shape would cause an outer shadow to
4095-
disappear, and an inner shadow to cover the entire padding-box.)
4085+
href="#inset"><code class=css>inset</code></a>’ shadows) by outsetting
4086+
(insetting, for inner shadows) the shadow's straight edges by the spread
4087+
distance and increasing (decreasing, for inner shadows) and flooring at
4088+
zero the corner radii by the same amount. In order to create a sharper
4089+
corner when the border radius is small, when the ratio <var>r</var> of the
4090+
border-radius to the spread distance is less than one, the spread distance
4091+
is multiplied by the proportion 1 + (<var>r</var>-1)<sup>3</sup> when
4092+
calculating the corner radii of the spread shadow shape. In any case, the
4093+
effective width and height of the shadowed shape is floored at zero. (A
4094+
zero-sized shadowed shape would cause an outer shadow to disappear, and an
4095+
inner shadow to cover the entire padding-box.)
40964096

40974097
<p>A non-zero blur distance indicates that the resulting shadow should be
40984098
blurred, such as by a Gaussian filter. The exact algorithm is not defined;
@@ -4518,12 +4518,6 @@ <h3 id=changes-2012-07><span class=secno>9.1. </span> Changes since the 24
45184518
Candidate Recommendation</a>:
45194519

45204520
<ul>
4521-
<li>Allow <var>&lt;color></var> and ‘<a href="#inset"><code
4522-
class=css>inset</code></a>’ to be interleaved in any order in ‘<a
4523-
href="#box-shadow"><code class=property>box-shadow</code></a>’, since
4524-
they are not ambiguous and CSS generally allows variant ordering where
4525-
not ambiguous.
4526-
45274521
<li>Allow <var>&lt;‘<a href="#background-clip"><code
45284522
class=property>background-clip</code></a>></var> and <var>&lt;‘<a
45294523
href="#background-origin"><code
@@ -4532,8 +4526,22 @@ <h3 id=changes-2012-07><span class=secno>9.1. </span> Changes since the 24
45324526
class=property>background</code></a>’ shorthand, since this is what is
45334527
implemented.
45344528

4535-
<li>Clarify the definition of the spread for ‘<a
4536-
href="#box-shadow"><code class=property>box-shadow</code></a>’.
4529+
<li>Allow <var>&lt;color></var> and ‘<a href="#inset"><code
4530+
class=css>inset</code></a>’ to be interleaved in any order in ‘<a
4531+
href="#box-shadow"><code class=property>box-shadow</code></a>’, since
4532+
they are not ambiguous and CSS generally allows variant ordering where
4533+
not ambiguous.
4534+
4535+
<li>Define gradually increasing corner radius formula for ‘<a
4536+
href="#box-shadow"><code class=property>box-shadow</code></a>’ spread
4537+
curvature to create continuity between sharp corners (‘<a
4538+
href="#border-radius"><code class=property>border-radius</code></a>’ =
4539+
0) and curved corners (‘<a href="#border-radius"><code
4540+
class=property>border-radius</code></a>> <var>spread distance</var>).
4541+
This also gives better results for all intermediate states.
4542+
4543+
<li>Tighten up the definition of spread for ‘<a href="#box-shadow"><code
4544+
class=property>box-shadow</code></a>’.
45374545

45384546
<li>Clarify that a ‘<a href="#border-style"><code
45394547
class=property>border-style</code></a>’ of ‘<code

0 commit comments

Comments
 (0)