Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / css-shorthand-common-value.html
blob51e82f925f4720cc687d25ea0b132750ba33b8db
1 <!doctype html>
2 <style>
3 #test {
4 border: 10px solid red;
5 border-top-width: 50px;
7 </style>
8 <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.
9 <pre id="result">
10 </pre>
12 <script>
13 if (window.testRunner)
14 testRunner.dumpAsText();
15 var sheet = document.querySelector('style').sheet;
16 var expected = 'solid red';
17 var actual = sheet.cssRules[0].style.getPropertyValue('border');
19 if (expected == actual)
20 document.getElementById('result').innerText = 'PASS';
21 else
22 document.getElementById('result').innerText = 'FAIL: expected "' + expected + '", got "' + actual + '"';
24 </script>