3 div { width:
0px; height:
0px }
4 #reflectionOffset { -webkit-box-reflect: right calc(
50%) }
5 #reflectionMask { -webkit-box-reflect: below calc(
5px) -webkit-gradient(linear,
0 0,
0 0)
25 25 25 25 stretch stretch; }
8 <p>Test calling getPropertyValue on computed styles for -webkit-border-image property.
</p>
9 <pre id=
"console"></pre>
11 <div id=
"reflectionOffset"></div>
12 <div id=
"reflectionMask"></div>
17 document
.getElementById('console').appendChild(document
.createTextNode(msg
+ '\n'));
20 function subTest(object
, property
)
23 var value
= document
.defaultView
.getComputedStyle(object
, null).getPropertyValue(property
);
24 log(' getPropertyValue: ' + value
+ (value
== 'none' ? ' <- FAIL' : ''));
27 function test(id
, value
)
29 log('-webkit-box-reflect: ' + value
+ ';');
30 var object
= document
.getElementById(id
);
31 subTest(object
, '-webkit-box-reflect');
34 if (window
.testRunner
)
35 testRunner
.dumpAsText();
36 test('reflectionOffset', 'right calc(50%)');
38 test('reflectionMask', 'below calc(5px) -webkit-gradient(linear, 0 0, 0 0) 25 25 25 25 stretch stretch');