layout: Make child stacking contexts of fixed position stacking contexts

also fixed position.

Improves YouTube.
Improves the Washington Post.

Closes #10526.
This commit is contained in:
Patrick Walton 2016-04-11 13:35:35 -07:00
parent b214205ba9
commit 8cc3e0660b
2 changed files with 24 additions and 8 deletions

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<body style="height: 2000px; background: linear-gradient(to bottom, white, black)">
<div style="position: fixed; top: 0; right: 0; left: 0;">
<div style="position: absolute; left: 0; right: 0; height: 40px; overflow: hidden;">
This text should <em>not</em> scroll.
</div>
</div>