<style> | |
body { | |
height: 1000px; | |
} | |
col { | |
position: sticky; | |
} | |
</style> | |
<body onload="runTest()"> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
function runTest() { | |
tableCol.scrollIntoViewIfNeeded(true); | |
} | |
</script> | |
<table> | |
<col id="tableCol"></col> | |
<p>Tests position:sticky on a table column.</p> | |
<p>The test passes if WebKit doesn't crash or hit an assertion.</p> | |
</body> |