| | Fixed positioned elements in the containing block are included in the |
| | https://www.w3.org/TR/cssom-view-1/#extension-to-the-element-interface |
| | https://www.w3.org/TR/cssom-view-1/#scrolling-area |
| background-color: #FF0000; |
| background-color: #808080; |
| transform: translateX(0px); |
| background-color: #0000FF; |
| window.testRunner.waitUntilDone(); |
| var scroller = document.getElementById("scroller"); |
| if (scroller.scrollWidth != 175) { |
| error += "\nValue of: scrollWidth" |
| + "\n Actual: " + scroller.scrollWidth |
| if (scroller.scrollHeight != 150) { |
| error += "\nValue of: scrollHeight" |
| + "\n Actual: " + scroller.scrollHeight |
| window.onload = function() { |
| console.log("FAIL" + error); |
| document.body.style.backgroundColor = "rgba(0,0,0,0)"; |
| window.testRunner.notifyDone(); |
| <div id="scroller" class="overflow-scroll"> |
| <div class="content-positioned" style="transform: translateX(-25px)"></div> |
| <div class="content-positioned" style="transform: translateX(50px)"></div> |
| <div class="content-positioned" style="transform: translateX(125px)"></div> |