<!doctype html> | |
<style> | |
#test { | |
border: 10px solid red; | |
border-top-width: 50px; | |
} | |
</style> | |
<p>getPropertyValue('border') should return empty string if some side has different width, style or color than the others, even if the values that differ are implicitly set by a shorthand. | |
<pre id="result"> | |
</pre> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
var sheet = document.querySelector('style').sheet; | |
var expected = ''; | |
var actual = sheet.cssRules[0].style.getPropertyValue('border'); | |
if (expected == actual) | |
document.getElementById('result').innerText = 'PASS'; | |
else | |
document.getElementById('result').innerText = 'FAIL: expected "' + expected + '", got "' + actual + '"'; | |
</script> | |