blob: 87a39b10529578b46290d019c87c8aba1afe6dab [file] [log] [blame]
<!doctype html>
#test {
border: 10px solid red;
border-top-width: 50px;
<p>getPropertyValue('border') should not return a value for any property that doesn't have the same value for top, left, right and bottom, even if the values that differ are implicitly set by a shorthand.
<pre id="result">
if (window.testRunner)
var sheet = document.querySelector('style').sheet;
var expected = '';
var actual = sheet.cssRules[0].style.getPropertyValue('border');
if (expected == actual)
document.getElementById('result').innerText = 'PASS';
document.getElementById('result').innerText = 'FAIL: expected "' + expected + '", got "' + actual + '"';