@@ -2047,6 +2047,82 @@ <h3 id=border-corner-shape>
20472047 < dd > Border radii define a concave rectangular notch at the corner.
20482048 </ dl >
20492049
2050+ <!--
2051+ <h2 id="partial-borders">
2052+ Partial Borders: the 'border-limit' property</h2>
2053+
2054+ <table class=propdef>
2055+ <tr>
2056+ <th>Name:
2057+ <td><dfn>border-parts</dfn>
2058+ <tr>
2059+ <th>Value:
2060+ <td>all | [ sides | corners ] [ <length> | <percentage> ]?
2061+ | [ top | right | bottom | left ] [ <length> | <percentage> ]
2062+ <tr>
2063+ <th>Initial:
2064+ <td>round
2065+ <tr>
2066+ <th>Applies to:
2067+ <td>all elements, except table element when 'border-collapse' is
2068+ ''collapse''
2069+ <tr>
2070+ <th>Inherited:
2071+ <td>no
2072+ <tr>
2073+ <th>Percentages:
2074+ <td>relative to border-box
2075+ <tr>
2076+ <th>Media:
2077+ <td>visual
2078+ <tr>
2079+ <th>Computed value:
2080+ <td>as specified
2081+ </table>
2082+
2083+ <p>By default, the entire border is drawn. However, border rendering can be
2084+ limited to only part of a border. The keyword specifies which part, and
2085+ the length or percentage specifies how much.
2086+ <dl>
2087+ <dt><dfn>''sides''</dfn>
2088+ <dd>The sides are drawn up to but not including the corners (as defined
2089+ by the border radii). A length or percentage is measured from the center
2090+ of each side: ''50%'' draws the middle 50% of the border; by default the
2091+ entire side is drawn.
2092+ <dt><dfn>''corners''</dfn>
2093+ <dd>The corners are drawn plus the specified distance into the sides if
2094+ specified. A length is measured from the closest edge of the corner area.
2095+ A percentage is measured from the absolute corner of the border box.
2096+ <dt><dfn>''left''</dfn>
2097+ <dt><dfn>''right''</dfn>
2098+ <dd>For the left and right (vertical) sides, draws the entire side and
2099+ corner. For the top and bottom (horizontal) sides, draws the left/right
2100+ portion, as specified. Distances are measured as for ''corners''.
2101+ <dt><dfn>''top''</dfn>
2102+ <dt><dfn>''bottom''</dfn>
2103+ <dd>For the top and bottom (horizontal) sides, draws the entire side and
2104+ corner. For the left and right (vertical) sides, draws the top/bottom
2105+ portion, as specified. Distances are measured as for ''corners''.
2106+ </dl>
2107+
2108+ <div class="example">
2109+ <p>The following example draws only the middle 50% of the sides.</p>
2110+ <pre>box { border: solid; border-parts: sides 50% }</pre>
2111+ <p>The following example draws only the curved parts of the corners.</p>
2112+ <pre>box { border: solid; border-radius: 1em 2em; border-parts: corners; }</pre>
2113+ <p>The following example draws only the left 4em of the top border.</p>
2114+ <pre>box { border-top: solid; border-parts: left 4em; }
2115+ <p>The following example draws only the first 10px of each corner:</p>
2116+ <pre>box { border: solid; border-parts: corners 10px; }</pre>
2117+ <p>The following example draws the curved part of the corner plus 5px
2118+ along ths sides:</p>
2119+ <pre>box { border: solid; border-radius: 5px; border-shape: scoop; border-parts: corners 5px; }</pre>
2120+ <p>The following example draws the curved part of the corner and all of
2121+ the side except the middle 50%.</p>
2122+ <pre>box { border: solid; border-radius: 5px; border-shape: scoope; border-parts: corners 50%; }</pre>
2123+ </div>
2124+ -->
2125+
20502126< h2 id ="border-images ">
20512127Border Images</ h2 >
20522128
0 commit comments