<!DOCTYPE html>
<table rules="cols">
<caption>caption</caption>
<col id="target" style="width:50%"/>
<tbody>
<tr></tr>
</tbody>
</table>
<script>
document.body.offsetTop;
document.getElementById('target').style.width = 'auto';
</script>