Skip to content

Commit 12b4c0d

Browse files
committed
Add partial-curve figure, further clarify note.
1 parent ce34b6d commit 12b4c0d

3 files changed

Lines changed: 46 additions & 10 deletions

File tree

css3-background/Overview.html

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
.prod { font-family: inherit; font-size: inherit }
1313
pre.prod { white-space: pre-wrap; margin: 1em 0 1em 2em }
1414
code { font-size: inherit; }
15+
pre { text-align: left; }
1516
#box-shadow-samples td { background: white; color: black; }
1617
</style>
1718
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
@@ -24,12 +25,12 @@
2425

2526
<h1>CSS Backgrounds and Borders Module Level 3</h1>
2627

27-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 April 2012</h2>
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 11 April 2012</h2>
2829

2930
<dl>
3031
<dt>This version:
3132

32-
<dd><!-- <a href="http://www.w3.org/TR/2012/CR-css3-background-20120410">http://www.w3.org/TR/2012/ED-css3-background-20120410/</a> -->
33+
<dd><!-- <a href="http://www.w3.org/TR/2012/CR-css3-background-20120411">http://www.w3.org/TR/2012/ED-css3-background-20120411/</a> -->
3334
<a
3435
href="http://dev.w3.org/csswg/css3-background/">http://dev.w3.org/csswg/css3-background/</a>
3536

@@ -2855,10 +2856,6 @@ <h3 id=corner-shaping><span class=secno>5.2. </span>Corner Shaping</h3>
28552856
adjoining borders are of different thicknesses the corner will show a
28562857
smooth transition between the thicker and thinner borders.
28572858

2858-
<p class=note>Note that this means that if the center of the outer curve is
2859-
past the opposite side's padding edge, the inner curve might not be a full
2860-
quarter ellipse.
2861-
28622859
<p>All border styles (&lsquo;<code class=css>solid</code>&rsquo;,
28632860
&lsquo;<code class=css>dotted</code>&rsquo;, &lsquo;<code
28642861
class=css>inset</code>&rsquo;, etc.) follow the curve of the border.
@@ -2873,6 +2870,28 @@ <h3 id=corner-shaping><span class=secno>5.2. </span>Corner Shaping</h3>
28732870

28742871
</div>
28752872

2873+
<p class=note>Note that if the center of a corner's outer curve is past an
2874+
opposite padding edge (in the border area of a side opposite the corner),
2875+
the inner curve will not be a full quarter ellipse.
2876+
2877+
<div class=figure>
2878+
<table>
2879+
<tbody>
2880+
<tr>
2881+
<td>
2882+
<pre>p { width: 70px; height: 70px; border: solid 30px;
2883+
<!-- --> border-color: orange orange silver silver;
2884+
<!-- --> border-top-right-radius: 100%; }</pre>
2885+
2886+
<td><img
2887+
alt="The curved corner is an arc from the top left corner sweeping across the top right corner to the bottom right corner, describing a quarter-ellipse; but since the opposite sides have a border thickness the padding edge curve starts inward from the outer arc's endpoints."
2888+
src=partial-curve.png>
2889+
</table>
2890+
2891+
<p class=caption>Where the border-radius curve extends into the opposite
2892+
sides' borders, the arc of the padding edge is less than 90&deg;.
2893+
</div>
2894+
28762895
<h3 id=corner-clipping><span class=secno>5.3. </span>Corner Clipping</h3>
28772896

28782897
<p>A box's backgrounds, but not its <a

css3-background/Overview.src.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
.prod { font-family: inherit; font-size: inherit }
1212
pre.prod { white-space: pre-wrap; margin: 1em 0 1em 2em }
1313
code { font-size: inherit; }
14+
pre { text-align: left; }
1415
#box-shadow-samples td { background: white; color: black; }
1516
</style>
1617
<link rel="stylesheet" type="text/css"
@@ -2007,10 +2008,6 @@ <h3 id="corner-shaping">Corner Shaping</h3>
20072008
when two adjoining borders are of different thicknesses the corner will
20082009
show a smooth transition between the thicker and thinner borders.
20092010

2010-
<p class="note">Note that this means that if the center of the outer curve
2011-
is past the opposite side's padding edge, the inner curve might not be a
2012-
full quarter ellipse.</p>
2013-
20142011
<p>All border styles (''solid'', ''dotted'', ''inset'', etc.)
20152012
follow the curve of the border.
20162013

@@ -2024,6 +2021,26 @@ <h3 id="corner-shaping">Corner Shaping</h3>
20242021
corner (right).
20252022
</div>
20262023

2024+
<p class="note">Note that if the center of a corner's outer curve is past an
2025+
opposite padding edge (in the border area of a side opposite the corner),
2026+
the inner curve will not be a full quarter ellipse.</p>
2027+
2028+
<div class="figure">
2029+
<table>
2030+
<tr><td><pre>p { width: 70px; height: 70px; border: solid 30px;
2031+
<!-- --> border-color: orange orange silver silver;
2032+
<!-- --> border-top-right-radius: 100%; }</pre>
2033+
<td><img alt="The curved corner is an arc from the top left corner sweeping
2034+
across the top right corner to the bottom right corner, describing
2035+
a quarter-ellipse; but since the opposite sides have a border
2036+
thickness the padding edge curve starts inward from the outer arc's
2037+
endpoints."
2038+
src="partial-curve.png">
2039+
</table>
2040+
<p class=caption>Where the border-radius curve extends into the opposite
2041+
sides' borders, the arc of the padding edge is less than 90&deg;.
2042+
</div>
2043+
20272044
<h3 id="corner-clipping">Corner Clipping</h3>
20282045

20292046
<p>A box's backgrounds, but not its <a href="#the-border-image">border-image</a>,

css3-background/partial-curve.png

4.22 KB
Loading

0 commit comments

Comments
 (0)