@@ -14,7 +14,8 @@ Editor: Sebastian Zartner, Invited Expert,
[email protected] , w3cid 649
1414Editor : Noam Rosenthal, Google, w3cid 121539
1515Former Editor : Bert Bos, W3C, [email protected] , w3cid 3343 1616Abstract : This module contains the features of CSS relating to the borders and decorations of boxes on the page.
17- Ignored Terms : total width, border-*-*-radius, corner-*-shape, corner-*-*-shape, corner-*-*, corner-*, box-shadow-*, border-*-clip
17+ Ignored Terms : border-*-*-radius, border-*-clip, box-shadow-*, corner-*-shape, corner-*-*-shape, corner-*-*, corner-*
18+ Ignored Vars : block, inline, Li, Ltop, Lbottom, Lleft, Lright, total width, W, Wside, Wleft, Wright, Wtop, Wbottom
1819Repository : w3c/csswg-drafts
1920WPT Path Prefix : css/css-borders/
2021WPT Display : open
@@ -128,11 +129,11 @@ Line Colors: the 'border-color' properties</h3>
128129
129130 Sample rendering:
130131
131- <img src="images/multicolor-border.png" alt="">
132+ <img src="images/multicolor-border.png" alt="" width="450" >
132133
133134 The same border colors with ''border-style: dotted'' :
134135
135- <img src="images/multicolor-border-dotted.png" alt="">
136+ <img src="images/multicolor-border-dotted.png" alt="" width="450" >
136137 </div>
137138
138139 <pre class="propdef shorthand">
@@ -311,9 +312,7 @@ Line Patterns: the 'border-style' properties</h3>
311312 but behind the element’s content (in case it overlaps).
312313
313314 <figure>
314- <img src="images/borderstyles.png"
315- alt="Examples of border styles"
316- >
315+ <img src="images/borderstyles.png" alt="" width="669">
317316
318317 <figcaption> Example renderings of the predefined border styles.</figcaption>
319318 </figure>
@@ -586,9 +585,7 @@ Corners</h2>
586585 follow the curve of the border.
587586
588587 <figure>
589- <img src="images/smooth-radius.png"
590- alt="The effect of rounded corners on unequal borders"
591- >
588+ <img src="images/smooth-radius.png" alt="" width="407">
592589
593590 <figcaption>
594591 The effect of a rounded corner when the two borders it connects
@@ -620,6 +617,7 @@ Corners</h2>
620617 describing a quarter-ellipse;
621618 but since the opposite sides have a border thickness
622619 the padding edge curve starts inward from the outer arc's endpoints."
620+ width="141"
623621 >
624622 </table>
625623 <figcaption>
@@ -696,9 +694,7 @@ Color and Style Transitions</h3>
696694 or what function maps from this ratio to a point on the curve.
697695
698696 <figure>
699- <img src="images/transition-region.png"
700- alt="Illustration of the transition region on curved corners"
701- >
697+ <img src="images/transition-region.png" alt="" width="600">
702698
703699 <figcaption>
704700 Given these corner shapes, color and style transitions
@@ -774,7 +770,8 @@ Overlapping Curves</h3>
774770
775771 <figure id=reduced-radius>
776772 <img src="images/corner-large-mix.png"
777- alt="[image: rectangle with two tiny rounded corners and two very large ones, on opposite corners]"
773+ alt="rectangle with two tiny rounded corners and two very large ones, on opposite corners"
774+ width="539"
778775 >
779776
780777 <figcaption>
@@ -827,6 +824,7 @@ Corner Sizing: the 'border-*-*-radius' properties</h3>
827824 <figure>
828825 <img src="images/corner.png"
829826 alt="Diagram of the inscribed ellipse"
827+ width="289"
830828 >
831829
832830 <figcaption>
@@ -1253,7 +1251,7 @@ Corner Shaping: the 'corner-*-shape' properties</h3>
12531251 <div class=example>
12541252
12551253 <figure>
1256- <img src="images/superellipse-param.svg" width="480" height="360">
1254+ <img src="images/superellipse-param.svg" alt="" width="480" height="360">
12571255 <figcaption>
12581256 Different ''superellipse()'' values for the top right corner: infinity, 1, 0, -1, and -infinity.
12591257 </figcaption>
@@ -1411,7 +1409,9 @@ while when rendering 'box-shadow' or offsetting for 'overflow-clip-margin', the
14111409<figure>
14121410 <img src="images/corner-shape-adjusting.svg"
14131411 style="background: white;"
1414- alt="Adjusting corner shapes">
1412+ alt="Adjusting corner shapes"
1413+ width="600"
1414+ >
14151415 <figcaption> Borders are aligned to the curve, shadows and clip are aligned to the axis.</figcaption>
14161416</figure>
14171417
@@ -1642,7 +1642,10 @@ Border Images</h2>
16421642 The image to tile is as follows.
16431643 Apart from the diamonds, it is transparent:
16441644
1645- <img src="images/border.png" alt="Tile for border">
1645+ <img src="images/border.png"
1646+ alt="Tile for border"
1647+ width="81"
1648+ >
16461649
16471650 The image is 81 by 81 pixels and has to be divided into 9 equal parts.
16481651 The style rules could thus be as follows:
@@ -1657,7 +1660,10 @@ Border Images</h2>
16571660 The result, when applied to a DIV of 12 by 5em,
16581661 will be similar to this:
16591662
1660- <img src="images/borderresult.png" alt="element with a diamond border">
1663+ <img src="images/borderresult.png"
1664+ alt="element with a diamond border"
1665+ width="239"
1666+ >
16611667 </div>
16621668
16631669<div class="example">
@@ -1668,13 +1674,14 @@ Border Images</h2>
16681674
16691675 <figure>
16701676 <img src="images/groovy-border-image-slice.png"
1671- alt="Diagram: The border image shows a wavy green border
1672- with more exaggerated waves towards the corners,
1673- which are capped by a disconnected green circle.
1674- Four cuts at 124px offsets from each side
1675- divide the image into 124px-wide square corners,
1676- 124px-wide but thin side slices,
1677- and a small center square."
1677+ alt="Diagram: The border image shows a wavy green border
1678+ with more exaggerated waves towards the corners,
1679+ which are capped by a disconnected green circle.
1680+ Four cuts at 124px offsets from each side
1681+ divide the image into 124px-wide square corners,
1682+ 124px-wide but thin side slices,
1683+ and a small center square."
1684+ width="396"
16781685 >
16791686
16801687 <figcaption>
@@ -1701,6 +1708,7 @@ Border Images</h2>
17011708 The whole border image effect is outset 31px,
17021709 so that the troughs of the waves align
17031710 just outside the padding edge."
1711+ width="452"
17041712 >
17051713
17061714 <figcaption>
@@ -1866,7 +1874,9 @@ Image Slicing: the 'border-image-slice' property</h3>
18661874
18671875 <figure>
18681876 <img src="images/slice.png"
1869- alt="Diagram: two horizontal cuts and two vertical cuts through an image">
1877+ alt="Diagram: two horizontal cuts and two vertical cuts through an image"
1878+ width="388"
1879+ >
18701880
18711881 <figcaption>
18721882 Diagram illustrating the cuts corresponding to the value ''25% 30% 12% 20%''
@@ -3083,7 +3093,7 @@ as described in <a href="https://drafts.csswg.org/css-backgrounds-3/#corner-clip
30833093Issue: how should this affect clipping replaced elements?
30843094
30853095<div algorithm="choose-relevant-side-for-border-shape">
3086- An element's <dfn>relevant side for border shape</dfn> is the first side (in the order [=block-start=] , [=inline-start=] , [=block-end=] , and [=inline-end]) that has a non-''border-style/none'' [=border style=] , or [=block-start=] if they're all ''border-style/none'' .
3096+ An element's <dfn>relevant side for border shape</dfn> is the first side (in the order [=block-start=] , [=inline-start=] , [=block-end=] , and [=inline-end= ] ) that has a non-''border-style/none'' [=border style=] , or [=block-start=] if they're all ''border-style/none'' .
30873097 1. If |element|'s [=computed value|computed=] ' border-block-start-style' is not ''border-style/none'' , then return [=block-start=] .
30883098 1. If |element|'s [=computed value|computed=] ' border-inline-start-style' is not ''border-style/none'' , then return [=inline-start=] .
30893099 1. If |element|'s [=computed value|computed=] ' border-block-end-style' is not ''border-style/none'' , then return [=block-end=] .
0 commit comments