|
28 | 28 | code { font-size: inherit; } |
29 | 29 | pre { text-align: left; } |
30 | 30 | #box-shadow-samples td { background: white; color: black; } |
31 | | - .css::before, .css::after { content: none !important;} |
| 31 | + .css::before, .css::after, .property::before, .property::after { content: none !important;} |
32 | 32 | </style> |
33 | 33 | <link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet |
34 | 34 | type="text/css"> |
@@ -2921,10 +2921,11 @@ <h3 id=corner-shaping><span class=secno>5.2. </span>Corner Shaping</h3> |
2921 | 2921 |
|
2922 | 2922 | <p>The margin edge, being outside the border edge, calculates its radius by |
2923 | 2923 | adding the corresponding margin thickness to each border radius. However, |
2924 | | - in order to create a sharper corner when the border radius is small, if |
2925 | | - the ratio <var>r</var> of the border radius to the margin is less than one |
2926 | | - the margin thickness is multiplied by the proportion 1 + |
2927 | | - (<var>r</var>-1)<sup>3</sup> in this calculation. |
| 2924 | + in order to create a sharper corner when the border radius is small, when |
| 2925 | + the <i>border radius</i> is less than the margin, the margin is multiplied |
| 2926 | + by the proportion 1 + (<var>r</var>-1)<sup>3</sup>, where <var>r</var> is |
| 2927 | + the ratio of the border radius to the margin, in calculating the corner |
| 2928 | + radii of the margin box shape. |
2928 | 2929 |
|
2929 | 2930 | <h3 id=corner-clipping><span class=secno>5.3. </span>Corner Clipping</h3> |
2930 | 2931 |
|
@@ -4112,17 +4113,18 @@ <h4 id=shadow-shape><span class=secno>7.1.1. </span> Shadow Shape, Spread, |
4112 | 4113 | the shadow are also increased (decreased, for inner shadows) from the |
4113 | 4114 | border-box radii by adding the <a href="#spread-distance"><i>spread |
4114 | 4115 | distance</i></a> (and flooring at zero). However, in order to create a |
4115 | | - sharper corner when the border radius is small, when the ratio |
4116 | | - <var>r</var> of a border radius to the <a |
4117 | | - href="#spread-distance"><i>spread distance</i></a> is less than one, the |
4118 | | - <a href="#spread-distance"><i>spread distance</i></a> is multiplied by the |
4119 | | - proportion 1 + (<var>r</var>-1)<sup>3</sup> in calculating the corner |
4120 | | - radii of the spread shadow shape. For example, if the border radius is |
4121 | | - 10px and the <a href="#spread-distance"><i>spread distance</i></a> is 20px |
4122 | | - (<var>r</var> = .5), the corner radius of the shadow shape will be 10px + |
4123 | | - 20px×(1 + (.5 - 1)<sup>3</sup>) = 27.5px. This adjustment is applied |
4124 | | - independently to the radii in each dimension, and does not apply to |
4125 | | - negative spread distances. |
| 4116 | + sharper corner when the border radius is small, when the <i>border |
| 4117 | + radius</i> is less than the <a href="#spread-distance"><i>spread |
| 4118 | + distance</i></a>, the <a href="#spread-distance"><i>spread |
| 4119 | + distance</i></a> is multiplied by the proportion 1 + |
| 4120 | + (<var>r</var>-1)<sup>3</sup>, where <var>r</var> is the ratio of the |
| 4121 | + border radius to the <a href="#spread-distance"><i>spread |
| 4122 | + distance</i></a>, in calculating the corner radii of the spread shadow |
| 4123 | + shape. For example, if the border radius is 10px and the <a |
| 4124 | + href="#spread-distance"><i>spread distance</i></a> is 20px (<var>r</var> = |
| 4125 | + .5), the corner radius of the shadow shape will be 10px + 20px × (1 + (.5 |
| 4126 | + - 1)<sup>3</sup>) = 27.5px. This adjustment is applied independently to |
| 4127 | + the radii in each dimension. |
4126 | 4128 |
|
4127 | 4129 | <p>The ‘<a href="#border-image"><code |
4128 | 4130 | class=property>border-image</code></a>’ does not affect the shape of the |
|
0 commit comments