| <!DOCTYPE html> <!-- webkit-test-runner [ contentMode=desktop ] --> |
| <html> |
| <head> |
| <script src="../../../../resources/js-test-pre.js"></script> |
| </head> |
| <body> |
| <p id="description"></p> |
| <div id="console"></div> |
| <script> |
| description("This tests checks parsing of the '-webkit-overflow-scrolling' property."); |
| |
| function test(declaration, property) |
| { |
| var div = document.createElement("div"); |
| div.setAttribute("style", declaration); |
| document.body.appendChild(div); |
| |
| var result = div.style.getPropertyValue(property); |
| document.body.removeChild(div); |
| return result; |
| } |
| |
| shouldBe('test("-webkit-overflow-scrolling: auto", "-webkit-overflow-scrolling")', '""'); |
| shouldBe('test("-webkit-overflow-scrolling: banana", "-webkit-overflow-scrolling")', '""'); |
| shouldBe('test("-webkit-overflow-scrolling: touch", "-webkit-overflow-scrolling")', '""'); |
| |
| var successfullyParsed = true; |
| </script> |
| <script src="../../../../resources/js-test-post.js"></script> |
| </body> |
| </html> |