| div { width: 0px; height: 0px } |
| #reflectionOffset { -webkit-box-reflect: right calc(50%) } |
| #reflectionMask { -webkit-box-reflect: below calc(5px) -webkit-gradient(linear, 0 0, 0 0) 25 25 25 25 stretch stretch; } |
| <p>Test calling getPropertyValue on computed styles for -webkit-border-image property.</p> |
| <div id="reflectionOffset"></div> |
| <div id="reflectionMask"></div> |
| document.getElementById('console').appendChild(document.createTextNode(msg + '\n')); |
| function subTest(object, property) |
| var value = document.defaultView.getComputedStyle(object, null).getPropertyValue(property); |
| log(' getPropertyValue: ' + value + (value == 'none' ? ' <- FAIL' : '')); |
| log(' getPropertyCSSValue: ' + document.defaultView.getComputedStyle(object, null).getPropertyCSSValue(property)); |
| log('-webkit-box-reflect: ' + value + ';'); |
| var object = document.getElementById(id); |
| subTest(object, '-webkit-box-reflect'); |
| test('reflectionOffset', 'right calc(50%)'); |
| test('reflectionMask', 'below calc(5px) -webkit-gradient(linear, 0 0, 0 0) 25 25 25 25 stretch stretch'); |