Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html lang="en-US"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>test of border-image-source: linear-gradient with border-image-slice</title> |
michael@0 | 5 | <style> |
michael@0 | 6 | table { margin: 0; padding: 0; border-spacing: 0; empty-cells: show; } |
michael@0 | 7 | td { padding: 0; } |
michael@0 | 8 | </style> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body> |
michael@0 | 11 | <table> |
michael@0 | 12 | <col style="width: 30px"> |
michael@0 | 13 | <col style="width: 180px"> |
michael@0 | 14 | <col style="width: 30px"> |
michael@0 | 15 | <tr style="height: 30px"> |
michael@0 | 16 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:30px 30px;"></td> |
michael@0 | 17 | <td></td> |
michael@0 | 18 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:30px 30px;"></td> |
michael@0 | 19 | </tr> |
michael@0 | 20 | <tr style="height: 180px"> |
michael@0 | 21 | <td></td> |
michael@0 | 22 | <td style="background: white"></td> |
michael@0 | 23 | <td></td> |
michael@0 | 24 | </tr> |
michael@0 | 25 | <tr style="height: 30px"> |
michael@0 | 26 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:30px 30px;"></td> |
michael@0 | 27 | <td></td> |
michael@0 | 28 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:30px 30px;"></td> |
michael@0 | 29 | </tr> |
michael@0 | 30 | </table> |
michael@0 | 31 | <table> |
michael@0 | 32 | <col style="width: 30.0px;"> |
michael@0 | 33 | <col style="width: 180.0px;"> |
michael@0 | 34 | <col style="width: 30.0px;"> |
michael@0 | 35 | <tr style="height: 30.0px;"> |
michael@0 | 36 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: 0px 0px;"></td> |
michael@0 | 37 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: -210.0px -0.0px;"></td> |
michael@0 | 38 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: -570.0px 0px;"></td> |
michael@0 | 39 | </tr> |
michael@0 | 40 | <tr style="height: 180.0px;"> |
michael@0 | 41 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: -0.0px -210.0px;"></td> |
michael@0 | 42 | <td style="background-image: white;"></td> |
michael@0 | 43 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: -570.0px -210.0px;"></td> |
michael@0 | 44 | </tr> |
michael@0 | 45 | <tr style="height: 30.0px;"> |
michael@0 | 46 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: 0px -570.0px;"></td> |
michael@0 | 47 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: -210.0px -570.0px;"></td> |
michael@0 | 48 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size: 600.0px 600.0px; background-position: -570.0px -570.0px;"></td> |
michael@0 | 49 | </tr> |
michael@0 | 50 | </table> |
michael@0 | 51 | <table> |
michael@0 | 52 | <col style="width: 30px"> |
michael@0 | 53 | <col style="width: 180px"> |
michael@0 | 54 | <col style="width: 30px"> |
michael@0 | 55 | <tr style="height: 30px"> |
michael@0 | 56 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: 0px 0px;"></td> |
michael@0 | 57 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: -30px 0px;"></td> |
michael@0 | 58 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: -210px 0px;"></td> |
michael@0 | 59 | </tr> |
michael@0 | 60 | <tr style="height: 180px"> |
michael@0 | 61 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: 0px -30px;"></td> |
michael@0 | 62 | <td style="background: white"></td> |
michael@0 | 63 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: -210px -30px;"></td> |
michael@0 | 64 | </tr> |
michael@0 | 65 | <tr style="height: 30px"> |
michael@0 | 66 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: 0px -210px;"></td> |
michael@0 | 67 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: -30px -210px;"></td> |
michael@0 | 68 | <td style="background-image: linear-gradient(to bottom right, red, blue); background-size:240px 240px; background-position: -210px -210px;"></td> |
michael@0 | 69 | </tr> |
michael@0 | 70 | </table> |
michael@0 | 71 | </body> |
michael@0 | 72 | </html> |