5 #spacingPair { border-spacing:
10px
20px; }
6 #spacingSingle { border-spacing:
10px; }
7 #zeroSpacingPair { border-spacing:
0px
0px; }
8 #zeroSpacingSingle { border-spacing:
0px; }
10 <script type=
"text/javascript">
13 document
.getElementById('console').appendChild(document
.createTextNode(msg
+ '\n'));
16 function test(id
, prop
)
18 var ob
= document
.getElementById(id
+ 'Pair');
19 log('getPropertyValue(' + prop
+ '): ' + document
.defaultView
.getComputedStyle(ob
, null).getPropertyValue(prop
));
20 ob
= document
.getElementById(id
+ 'Single');
21 log('getPropertyValue(' + prop
+ '): ' + document
.defaultView
.getComputedStyle(ob
, null).getPropertyValue(prop
));
26 if (window
.testRunner
)
27 testRunner
.dumpAsText();
29 test('spacing', 'border-spacing');
33 log('Test getting border-spacing of 0.')
34 test('zeroSpacing', 'border-spacing');
38 log('Test getting initial value of the background size.')
39 var ob
= document
.getElementById('spacingInit');
40 log('getPropertyValue(border-spacing): ' + document
.defaultView
.getComputedStyle(ob
, null).getPropertyValue('border-spacing'));
44 <body onload=
"runTests();">
45 <p>Test calling getPropertyValue on computed styles for -webkit-backround-size properties.
</p>
46 <pre id=
"console"></pre>
48 <div id=
"spacingPair"></div>
49 <div id=
"spacingSingle"></div>
50 <div id=
"zeroSpacingPair"></div>
51 <div id=
"zeroSpacingSingle"></div>
52 <div id=
"spacingInit"></div>