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-outset</title> |
michael@0 | 5 | <style> |
michael@0 | 6 | div { |
michael@0 | 7 | border: 30px solid black; |
michael@0 | 8 | width: 90px; |
michael@0 | 9 | height: 90px; |
michael@0 | 10 | margin: 90px; |
michael@0 | 11 | } |
michael@0 | 12 | div.border { |
michael@0 | 13 | border-image: linear-gradient(to bottom right, red, blue); |
michael@0 | 14 | border-image-outset: 0.5 1 2 60px; |
michael@0 | 15 | } |
michael@0 | 16 | div.border30 { |
michael@0 | 17 | border-image: linear-gradient(to bottom right, red, blue); |
michael@0 | 18 | border-image-outset: 0.5 1 2 60px; |
michael@0 | 19 | border-image-slice: 30 30; |
michael@0 | 20 | } |
michael@0 | 21 | div.border1260 { |
michael@0 | 22 | border-image: linear-gradient(to bottom right, red, blue); |
michael@0 | 23 | border-image-outset: 0.5 1 2 60px; |
michael@0 | 24 | border-image-slice: 12 60; |
michael@0 | 25 | } |
michael@0 | 26 | </style> |
michael@0 | 27 | </head> |
michael@0 | 28 | <body> |
michael@0 | 29 | <div class="border"></div> |
michael@0 | 30 | <div class="border30"></div> |
michael@0 | 31 | <div class="border1260"></div> |
michael@0 | 32 | </body> |
michael@0 | 33 | </html> |