mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
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:
parent
b214205ba9
commit
8cc3e0660b
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