5 #borderImageNone { -webkit-border-image: none }
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; }
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; }
11 <script type=
"text/javascript">
14 document
.getElementById('console').appendChild(document
.createTextNode(msg
+ '\n'));
17 function subTest(ob
, prop
)
20 log(' getPropertyValue: ' + document
.defaultView
.getComputedStyle(ob
, null).getPropertyValue(prop
));
23 function test(id
, val
)
25 log('-webkit-border-image: ' + val
+ ';');
26 var ob
= document
.getElementById(id
);
27 subTest(ob
, '-webkit-border-image');
32 if (window
.testRunner
)
33 testRunner
.dumpAsText();
35 test('borderImageNone', 'none');
39 test('borderImageStretch', '-webkit-gradient(linear, 0 0, 0 0) 25 25 25 25 stretch stretch');
43 test('borderImageRepeat', '-webkit-gradient(linear, 0 0, 0 0) 50 repeat');
47 test('borderImageWidth', '-webkit-gradient(linear, 0 0, 0 0) 25 25 25 25 / 20 20 20 20 repeat');
51 test('borderImageWidth2', '-webkit-gradient(linear, 0 0, 0 0) 50 / 20 stretch stretch');
55 <body onload=
"runTests();">
56 <p>Test calling getPropertyValue on computed styles for -webkit-border-image property.
</p>
57 <pre id=
"console"></pre>
59 <div id=
"borderImageNone"></div>
60 <div id=
"borderImageStretch"></div>
61 <div id=
"borderImageRepeat"></div>
62 <div id=
"borderImageWidth"></div>
63 <div id=
"borderImageWidth2"></div>