mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02: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:
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>
|
||||
Reference in New Issue
Block a user