Auto merge of #10529 - pcwalton:nested-fixed-position-webrender, r=glennw

layout: Make child stacking contexts of fixed position stacking contexts also fixed position.

Improves YouTube.
Improves the Washington Post.

Closes #10526.

r? @glennw

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10529)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-12 10:38:11 +05:30
commit 150338503d
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>