+
6 Border Images |
border-image-repeat-round |
= |
|
'border-image-repeat' set as 'round'
- diamonds in corners should be red, and other diamonds should be orange, it should be 4 orange diamonds on each side.
|
border-image-round-and-stretch |
= |
|
'border-image' set as 'round' and 'stretch'
- orange diamonds on top and bottom border should be repeated 12 times, and orange diamonds on left and right border should be stretched, diamonds in corners should be red, and other diamonds should be orange.
|
border-image-slice-percentage |
= |
|
'border-image-slice' set by percentage
- diamonds in corners should be red, and other diamonds should be orange, it should be 4 orange diamonds on each side.
|
+
6.2 Image Slicing: the ‘border-image-slice’ property |
border-image-slice-001 |
= |
Bitmaps |
border-image-slice - <percentage>
- Percentage values for 'border-image-slice' are relative to the size of the image: the width of the image for the horizontal (left and right) offsets, the height for vertical (top and bottom) offsets. 'border-image-slice' specifies inward offsets from the top, right, bottom, and left edges (in that order) of the image. In this test, the image serving as 'border-image-source' is a 100px by 100px image which has 5px of green at the top, 10px of green on the right, 15px of green at the bottom and 20px of green at the left; the remaining center (which has a width of 70px and a height of 80px) is all red.
|
border-image-slice-002 |
= |
Bitmaps |
border-image-slice - <number>
- Number values for 'border-image-slice' are pixels in the image: the width of the image for the horizontal (left and right) offsets, the height for vertical (top and bottom) offsets. 'border-image-slice' specifies inward offsets from the top, right, bottom, and left edges (in that order) of the image. In this test, the image serving as 'border-image-source' is a 100px by 100px image which has 5px of green at the top, 10px of green on the right, 15px of green at the bottom and 20px of green at the left; the remaining center (which has a width of 70px and a height of 80px) is all red.
|
border-image-slice-003 |
= |
Bitmaps |
border-image-slice - border-style: none
- If 'border-style' is not declared, then it defaults to 'none' in which case the computed border-widths on all 4 sides is 0 in which case the border area to be painted with the border-image is also 0. So, we should see no red in this test.
|
border-image-slice-005 |
|
Bitmaps |
The 'border-image-slice' property with four percentage values
- This test checks that the border image is sliced into nine regions with inward offsets, '40%' from the top, '15%' from the right,'20%' from the bottom, and '5%' from the left edges of the image. Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets.
|
border-image-slice-007 |
|
Bitmaps |
The 'border-image-slice' property with the 'fill' keyword
- This test checks that the 'fill' keyword, if present, causes the middle part of the border-image to be preserved.
|
+
6.7 Border Image Shorthand: the ‘border-image’ property |
border-image-017 |
= |
Bitmaps |
border-image shorthand - with border-image-slice <percentage> and border-image-width <percentage>
- Percentage values for 'border-image-slice' are relative to the size of the image: the width of the image for the horizontal (left and right) offsets, the height for vertical (top and bottom) offsets. 'border-image-slice' specifies inward offsets from the top, right, bottom, and left edges (in that order) of the image. In this test, the image serving as 'border-image-source' is a 100px by 100px image which has 5px of green at the top, 10px of green on the right, 15px of green at the bottom and 20px of green at the left; the remaining center (which has a width of 70px and a height of 80px) is all red.
|
border-image-018 |
= |
Bitmaps |
border-image shorthand - with border-image-slice <number> and border-image-width <percentage>
- Number values for 'border-image-slice' are pixels in the image: the width of the image for the horizontal (left and right) offsets, the height for vertical (top and bottom) offsets. 'border-image-slice' specifies inward offsets from the top, right, bottom, and left edges (in that order) of the image. In this test, the image serving as 'border-image-source' is a 100px by 100px image which has 5px of green at the top, 10px of green on the right, 15px of green at the bottom and 20px of green at the left; the remaining center (which has a width of 70px and a height of 80px) is all red.
|
border-image-019 |
= |
Bitmaps |
border-image shorthand - with border-image-slice <percentage> and border-image-width <number>
- Percentage values for 'border-image-slice' are relative to the size of the image: the width of the image for the horizontal (left and right) offsets, the height for vertical (top and bottom) offsets. 'border-image-slice' specifies inward offsets from the top, right, bottom, and left edges (in that order) of the image. In this test, the image serving as 'border-image-source' is a 100px by 100px image which has 5px of green at the top, 10px of green on the right, 15px of green at the bottom and 20px of green at the left; the remaining center (which has a width of 70px and a height of 80px) is all red.
|
border-image-020 |
= |
Bitmaps |
border-image shorthand - with border-image-slice <number> and border-image-width <number>
- Number values for 'border-image-slice' are pixels in the image: the width of the image for the horizontal (left and right) offsets, the height for vertical (top and bottom) offsets. 'border-image-slice' specifies inward offsets from the top, right, bottom, and left edges (in that order) of the image. In this test, the image serving as 'border-image-source' is a 100px by 100px image which has 5px of green at the top, 10px of green on the right, 15px of green at the bottom and 20px of green at the left; the remaining center (which has a width of 70px and a height of 80px) is all red.
|
border-images |
|
Bitmaps |
border-images with round repeat
- Testing border-image-repeat:round attribute
|