5 div { width:
0; height:
0 }
6 #reflectionNone { -webkit-box-reflect: none }
7 #reflectionDirection { -webkit-box-reflect: below }
8 #reflectionOffset { -webkit-box-reflect: right
50% }
9 #reflectionMask { -webkit-box-reflect: below
5px -webkit-gradient(linear,
0 0,
0 0)
25 25 25 25 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-box-reflect: ' + val
+ ';');
26 var ob
= document
.getElementById(id
);
27 subTest(ob
, '-webkit-box-reflect');
32 if (window
.testRunner
)
33 testRunner
.dumpAsText();
34 test('reflectionNone', 'none');
36 test('reflectionDirection', 'below');
38 test('reflectionOffset', 'right 50%');
40 test('reflectionMask', 'below 5px -webkit-gradient(linear, 0 0, 0 0) 25 25 25 25 stretch stretch');
44 <body onload=
"runTests();">
45 <p>Test calling getPropertyValue on computed styles for -webkit-border-image property.
</p>
46 <pre id=
"console"></pre>
48 <div id=
"reflectionNone"></div>
49 <div id=
"reflectionDirection"></div>
50 <div id=
"reflectionOffset"></div>
51 <div id=
"reflectionMask"></div>