OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #borderImageNone { -webkit-border-image: none } | 5 #borderImageNone { -webkit-border-image: none } |
6 #borderImageStretch { -webkit-border-image: -webkit-gradient(linear, 0 0
, 0 0) 25 25 25 25 stretch stretch; } | 6 #borderImageStretch { -webkit-border-image: -webkit-gradient(linear, 0 0
, 0 0) 25 25 25 25 stretch stretch; } |
7 #borderImageRepeat { -webkit-border-image: -webkit-gradient(linear, 0 0,
0 0) 50 repeat; } | 7 #borderImageRepeat { -webkit-border-image: -webkit-gradient(linear, 0 0,
0 0) 50 repeat; } |
8 #borderImageWidth { -webkit-border-image: -webkit-gradient(linear, 0 0,
0 0) 25 25 25 25 / 20 20 20 20 repeat; } | 8 #borderImageWidth { -webkit-border-image: -webkit-gradient(linear, 0 0,
0 0) 25 25 25 25 / 20 20 20 20 repeat; } |
9 #borderImageWidth2 { -webkit-border-image: -webkit-gradient(linear, 0 0,
0 0) 50 / 20 stretch stretch; } | 9 #borderImageWidth2 { -webkit-border-image: -webkit-gradient(linear, 0 0,
0 0) 50 / 20 stretch stretch; } |
10 </style> | 10 </style> |
11 <script type="text/javascript"> | 11 <script type="text/javascript"> |
12 function log(msg) | 12 function log(msg) |
13 { | 13 { |
14 document.getElementById('console').appendChild(document.createTextNo
de(msg + '\n')); | 14 document.getElementById('console').appendChild(document.createTextNo
de(msg + '\n')); |
15 } | 15 } |
16 | 16 |
17 function subTest(ob, prop) | 17 function subTest(ob, prop) |
18 { | 18 { |
19 log(' ' + prop); | 19 log(' ' + prop); |
20 log(' getPropertyValue: ' + document.defaultView.getComputedSt
yle(ob, null).getPropertyValue(prop)); | 20 log(' getPropertyValue: ' + document.defaultView.getComputedSt
yle(ob, null).getPropertyValue(prop)); |
21 log(' getPropertyCSSValue: ' + document.defaultView.getComputedSt
yle(ob, null).getPropertyCSSValue(prop)); | |
22 } | 21 } |
23 | 22 |
24 function test(id, val) | 23 function test(id, val) |
25 { | 24 { |
26 log('-webkit-border-image: ' + val + ';'); | 25 log('-webkit-border-image: ' + val + ';'); |
27 var ob = document.getElementById(id); | 26 var ob = document.getElementById(id); |
28 subTest(ob, '-webkit-border-image'); | 27 subTest(ob, '-webkit-border-image'); |
29 } | 28 } |
30 | 29 |
31 function runTests() | 30 function runTests() |
(...skipping 25 matching lines...) Expand all Loading... |
57 <p>Test calling getPropertyValue on computed styles for -webkit-border-image
property.</p> | 56 <p>Test calling getPropertyValue on computed styles for -webkit-border-image
property.</p> |
58 <pre id="console"></pre> | 57 <pre id="console"></pre> |
59 | 58 |
60 <div id="borderImageNone"></div> | 59 <div id="borderImageNone"></div> |
61 <div id="borderImageStretch"></div> | 60 <div id="borderImageStretch"></div> |
62 <div id="borderImageRepeat"></div> | 61 <div id="borderImageRepeat"></div> |
63 <div id="borderImageWidth"></div> | 62 <div id="borderImageWidth"></div> |
64 <div id="borderImageWidth2"></div> | 63 <div id="borderImageWidth2"></div> |
65 </body> | 64 </body> |
66 </html> | 65 </html> |
OLD | NEW |