Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>JS Bin</title>
</head>
<body>
Hover over some of the table cells to watch the table grow vertically and push down the green paragraph.
<!-- table contains sufficient content to trigger the horiz overflow scrollbar -->
<div class="table-wrapper">
<table>
<tbody>
  <tr>
    <td>Fooooo</td>
    <td>Barrrrr</td>
    <td>Bazzzzz</td>
    <td>Quxxxxxx</td>
    <td>Fooooo</td>
    <td>Barrrrr</td>
    <td>Bazzzzz</td>
    <td>Quxxxxxx</td>
  </tr>
    <tr>
    <td>Fooooo</td>
    <td>Barrrrr</td>
    <td>Bazzzzz</td>
    <td>Quxxxxxx</td>
    <td>Fooooo</td>
    <td>Barrrrr</td>
    <td>Bazzzzz</td>
    <td>Quxxxxxx</td>
  </tr>
</tbody>    
</table>
</div>
<p>After the table</p>
</body>
</html>
 
/* To trigger the bug */
.table-wrapper {
  overflow-x: auto;
  width: 200px;/* anything but `auto` */
}
td:hover {
  /* Some arbitrary :hover style on stuff within the table*/
  background-color: blue;
}
/* To help visualize the bug */
.table-wrapper {
  border: 1px solid black;
}
p {
  background-color: green;
}
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
cvrebertpro
0viewers