Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / backgrounds / repeat / resources / margin-shorthand.js
1 description('This layouttest was initially there to test that' +
2             ' shorthand property value is correct even if' +
3             ' background-repeat property is declared before it in the ' +
4             ' style declaration. It used to test regression described in ' + 
5             ' <a href="https://bugs.webkit.org/show_bug.cgi?id=28973">this bug</a>.' + 
6             ' Now that access to non author stylesheet is blocked, we should instead' +
7             ' get null when accessing the css rules on that object.');
8
9 function iconMarginValue()
10 {
11     var iconDiv = document.getElementById('icon');
12     var rules = window.getMatchedCSSRules(iconDiv,'',false);
13     return rules[1] ? rules[1].style.getPropertyValue('margin') : 'null';
14 }
15
16 shouldBe('iconMarginValue()', '"null"');