| <script src="../../../resources/js-test-pre.js"></script> |
| <div id="testElement"></div> |
| description('Test calling getPropertyValue on computed margin styles.'); |
| var testElement = document.getElementById('testElement'); |
| shouldBe('getComputedStyle(testElement).marginTop', '"1.5px"'); |
| shouldBe('getComputedStyle(testElement).marginRight', '"2.5px"'); |
| shouldBe('getComputedStyle(testElement).marginBottom', '"3.5px"'); |
| shouldBe('getComputedStyle(testElement).marginLeft', '"4.5px"'); |
| shouldBe('getComputedStyle(testElement).margin', '"1.5px 2.5px 3.5px 4.5px"'); |
| shouldBe('getComputedStyle(testElement).paddingTop', '"5.5px"'); |
| shouldBe('getComputedStyle(testElement).paddingRight', '"6.5px"'); |
| shouldBe('getComputedStyle(testElement).paddingBottom', '"7.5px"'); |
| shouldBe('getComputedStyle(testElement).paddingLeft', '"8.5px"'); |
| shouldBe('getComputedStyle(testElement).padding', '"5.5px 6.5px 7.5px 8.5px"'); |
| var successfullyParsed = true; |
| <script src="../../../resources/js-test-post.js"></script> |