mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
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:
commit
150338503d
2 changed files with 24 additions and 8 deletions
7
tests/html/nested-fixed-position.html
Normal file
7
tests/html/nested-fixed-position.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue