Fix unexpected overflow with overflow: hidden set.

Fixes #9719.
This commit is contained in:
Glenn Watson 2016-03-03 05:02:37 +10:00
parent de7c67575e
commit ff831bb478
2 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1,7 @@
<div style="position: absolute; left: 0px; bottom: 0px; width: 100%; height: 48px; overflow: hidden; background: red;">
<!-- vertical overflow -->
<span style="display: inline-block; height: 32px; width: 32px; margin: 20px;"></span>
<!-- horizontal overflow -->
<div style="width: 40px; height: 40px; position: absolute; right: -40px;"></div>
</div>