Skip to content

Commit 7fcad2f

Browse files
committed
Various minor clarifications for border-radius:
- Use more precise language and a more definite example in the section defining the center of corner transitions on the curve - Clarify section on internal table elements by reordering and linking to CSS2.1 - Tweak wording on curve thickness interpolation to better link the sentences
1 parent d57b3ad commit 7fcad2f

2 files changed

Lines changed: 32 additions & 28 deletions

File tree

css3-background/Overview.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
<h1>CSS Backgrounds and Borders Module Level 3</h1>
2424

25-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 21 January
25+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 26 January
2626
2010</h2>
2727

2828
<dl>
2929
<dt>This version:
3030

31-
<dd><!--<a href="http://www.w3.org/TR/2010/CR-css3-background-20100121">http://www.w3.org/TR/2010/ED-css3-background-20100121</a>-->
31+
<dd><!--<a href="http://www.w3.org/TR/2010/CR-css3-background-20100126">http://www.w3.org/TR/2010/ED-css3-background-20100126</a>-->
3232
<a
3333
href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a>
3434

@@ -2414,7 +2414,7 @@ <h3 id=the-border-radius><span class=secno>4.4. </span>The &lsquo;<code
24142414
not coincide with that of the outer border curve.) Likewise the content
24152415
edge radius is the padding edge radius minus the corresponding padding, or
24162416
if that is negative, zero. The border and padding thicknesses in the
2417-
curved region are interpolated from the adjoining sides. Thus when two
2417+
curved region are thus interpolated from the adjoining sides, and when two
24182418
adjoining borders are of different thicknesses the corner will show a
24192419
smooth transition between the thicker and thinner borders.
24202420

@@ -2457,11 +2457,12 @@ <h3 id=the-border-radius><span class=secno>4.4. </span>The &lsquo;<code
24572457

24582458
<p>The center of color and style transitions between adjoining borders is
24592459
at the point on the curve that is at an angle that is proportional to the
2460-
ratio of the border widths. For example, if the two widths are equal, that
2461-
point is at a 45&deg; angle, and if one is twice the width of the other
2462-
the point is at a 30&deg; angle. The line demarcating this transition is
2463-
drawn between the point at that angle on the outer curve and the point at
2464-
that angle on the inner curve.
2460+
ratio of the border widths. For example, if the top and right border
2461+
widths are equal, that point is at a 45&deg; angle from the horizontal,
2462+
and if the top is twice the width of the right the point is at a 30&deg;
2463+
angle from the horizontal. The line demarcating this transition is drawn
2464+
between the point at that angle on the outer arc and the point at that
2465+
angle on the inner arc.
24652466

24662467
<p>Color and style transitions must be contained within the segment of the
24672468
border that intersects the smallest rectangle that contains both border
@@ -2488,9 +2489,9 @@ <h3 id=the-border-radius><span class=secno>4.4. </span>The &lsquo;<code
24882489
(represented in case D by the dark green region).
24892490
</div>
24902491

2491-
<p>Corner curves must not overlap: When the sum of any two adjacent corner
2492+
<p>Corner curves must not overlap: When the sum of any two adjacent border
24922493
radii exceeds the size of the border box, UAs must proportionally reduce
2493-
all corner radii until none of them overlap. The algorithm for reducing
2494+
all border radii until none of them overlap. The algorithm for reducing
24942495
radii is as follows:
24952496

24962497
<p>Let <var>f</var> =
@@ -2561,12 +2562,13 @@ <h3 id=the-border-radius><span class=secno>4.4. </span>The &lsquo;<code
25612562
radii neither intersect nor extend past the boundaries of their respective
25622563
corner cells.
25632564

2564-
<p>CSS3 UAs should ignore border-radius properties applied to internal
2565-
table elements when &lsquo;<code
2566-
class=property>border-collapse</code>&rsquo; is &lsquo;<code
2567-
class=css>collapse</code>&rsquo;. The effect of border-radius on internal
2568-
table elements is undefined in CSS3 Backgrounds and Borders, but may be
2569-
defined in a future specification.
2565+
<p>The effect of border-radius on <a
2566+
href="http://www.w3.org/TR/CSS21/tables.html#tables-intro">internal table
2567+
elements</a> is undefined in CSS3 Backgrounds and Borders, but may be
2568+
defined in a future specification. CSS3 UAs <em>should</em> ignore
2569+
border-radius properties applied to internal table elements when
2570+
&lsquo;<code class=property>border-collapse</code>&rsquo; is &lsquo;<code
2571+
class=css>collapse</code>&rsquo;.
25702572

25712573
<div class=example>
25722574
<p>This example draws ovals of 15em wide and 10em high:

css3-background/Overview.src.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ <h3 id="the-border-radius">The 'border-radius' properties</h3>
17351735
might not coincide with that of the outer border curve.) Likewise the
17361736
content edge radius is the padding edge radius minus the corresponding
17371737
padding, or if that is negative, zero. The border and padding thicknesses
1738-
in the curved region are interpolated from the adjoining sides. Thus
1738+
in the curved region are thus interpolated from the adjoining sides, and
17391739
when two adjoining borders are of different thicknesses the corner will
17401740
show a smooth transition between the thicker and thinner borders.
17411741

@@ -1774,11 +1774,12 @@ <h3 id="the-border-radius">The 'border-radius' properties</h3>
17741774

17751775
<p>The center of color and style transitions between adjoining borders
17761776
is at the point on the curve that is at an angle that is proportional
1777-
to the ratio of the border widths. For example, if the two widths are
1778-
equal, that point is at a 45&deg; angle, and if one is twice the width
1779-
of the other the point is at a 30&deg; angle. The line demarcating this
1780-
transition is drawn between the point at that angle on the outer curve
1781-
and the point at that angle on the inner curve.
1777+
to the ratio of the border widths. For example, if the top and right
1778+
border widths are equal, that point is at a 45&deg; angle from the
1779+
horizontal, and if the top is twice the width of the right the point
1780+
is at a 30&deg; angle from the horizontal. The line demarcating this
1781+
transition is drawn between the point at that angle on the outer arc
1782+
and the point at that angle on the inner arc.
17821783

17831784
<p>Color and style transitions must be contained within the segment of
17841785
the border that intersects the smallest rectangle that contains both
@@ -1805,9 +1806,9 @@ <h3 id="the-border-radius">The 'border-radius' properties</h3>
18051806
(represented in case D by the dark green region).
18061807
</div>
18071808

1808-
<p>Corner curves must not overlap: When the sum of any two adjacent corner
1809+
<p>Corner curves must not overlap: When the sum of any two adjacent border
18091810
radii exceeds the size of the border box, UAs must proportionally reduce all
1810-
corner radii until none of them overlap. The algorithm for reducing radii
1811+
border radii until none of them overlap. The algorithm for reducing radii
18111812
is as follows:
18121813

18131814
<p>Let <var>f</var> = min(<var>L<sub>i</sub></var>/<var>S<sub>i</sub></var>),
@@ -1872,10 +1873,11 @@ <h3 id="the-border-radius">The 'border-radius' properties</h3>
18721873
must be reduced by the same factor so that the radii neither intersect
18731874
nor extend past the boundaries of their respective corner cells.
18741875

1875-
<p>CSS3 UAs should ignore border-radius properties applied to internal
1876-
table elements when 'border-collapse' is ''collapse''.
1877-
The effect of border-radius on internal table elements is undefined in
1878-
CSS3 Backgrounds and Borders, but may be defined in a future specification.
1876+
<p>The effect of border-radius on <a href="http://www.w3.org/TR/CSS21/tables.html#tables-intro">internal
1877+
table elements</a> is undefined in CSS3 Backgrounds and Borders, but may
1878+
be defined in a future specification. CSS3 UAs <em>should</em> ignore
1879+
border-radius properties applied to internal table elements when
1880+
'border-collapse' is ''collapse''.
18791881

18801882
<div class=example>
18811883
<p>This example draws ovals of 15em wide and 10em high:

0 commit comments

Comments
 (0)