| border-width: 5px 5px 10px 10px; |
| background-color: lightblue; |
| document.getElementById("console").appendChild(document.createTextNode(message + "\n")); |
| var childStyle = div.firstElementChild.style; |
| var cssText = childStyle.cssText; |
| if (cssText) cssText += " "; |
| log(cssText + "-> scrollWidth: " + div.scrollWidth); |
| var container = document.getElementById("container"); |
| for (var d = container.firstElementChild; d; d = d.nextElementSibling) |
| container.style.direction = "rtl"; |
| for (var d = container.firstElementChild; d; d = d.nextElementSibling) |
| Test the value of scrollWidth on blocks with visible overflow. These |
| <div style="margin-left: 9px;"></div> |
| <div style="margin-right: 9px;"></div> |
| <div style="margin-left: -27px;"></div> |
| <div style="position: relative;"></div> |
| <div style="position: relative; left: 9px;"></div> |
| <div style="position: relative; left: -9px;"></div> |
| <div style="position: relative; left: -27px;"></div> |
| <div style="position: absolute;"></div> |