| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/run-after-display.js"></script> | 4 <script src="../../resources/run-after-display.js"></script> |
| 5 <style> | 5 <style> |
| 6 | 6 |
| 7 #backgroundFixed { | 7 #backgroundFixed { |
| 8 -webkit-transform: translatez(0); | 8 transform: translatez(0); |
| 9 position: fixed; | 9 position: fixed; |
| 10 height: 400px; | 10 height: 400px; |
| 11 width: 400px; | 11 width: 400px; |
| 12 z-index: 1; | 12 z-index: 1; |
| 13 background-color: gray; | 13 background-color: gray; |
| 14 } | 14 } |
| 15 | 15 |
| 16 #container { | 16 #container { |
| 17 position: absolute; | 17 position: absolute; |
| 18 z-index: 2; | 18 z-index: 2; |
| 19 top: 100px; | 19 top: 100px; |
| 20 left: 100px; | 20 left: 100px; |
| 21 width: 960px; | 21 width: 960px; |
| 22 background-color: green; | 22 background-color: green; |
| 23 width: 100px; | 23 width: 100px; |
| 24 height: 4000px; | 24 height: 4000px; |
| 25 } | 25 } |
| 26 | 26 |
| 27 #innerFixed { | 27 #innerFixed { |
| 28 -webkit-transform: translatez(0); | 28 transform: translatez(0); |
| 29 background-color: blue; | 29 background-color: blue; |
| 30 position: fixed; | 30 position: fixed; |
| 31 top: 150px; | 31 top: 150px; |
| 32 left: 100px; | 32 left: 100px; |
| 33 width: 200px; | 33 width: 200px; |
| 34 height: 100px; | 34 height: 100px; |
| 35 } | 35 } |
| 36 | 36 |
| 37 #innerScrolling { | 37 #innerScrolling { |
| 38 background-color: lime; | 38 background-color: lime; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 CASE 1, original layer tree: | 123 CASE 1, original layer tree: |
| 124 <pre id="Case1"></pre> | 124 <pre id="Case1"></pre> |
| 125 | 125 |
| 126 CASE 2, scrolling y by 10 pixels, both the "container" and "inner" should sc
roll properly. | 126 CASE 2, scrolling y by 10 pixels, both the "container" and "inner" should sc
roll properly. |
| 127 <pre id="Case2"></pre> | 127 <pre id="Case2"></pre> |
| 128 | 128 |
| 129 CASE 3, scrolling y further so that "inner" no longer overlaps the fixed-pos
layer, then the stacking context of "container" includes the "innerScrolling" l
ayer, and doubles in width: | 129 CASE 3, scrolling y further so that "inner" no longer overlaps the fixed-pos
layer, then the stacking context of "container" includes the "innerScrolling" l
ayer, and doubles in width: |
| 130 <pre id="Case3"></pre> | 130 <pre id="Case3"></pre> |
| 131 </div> | 131 </div> |
| 132 </body> | 132 </body> |
| OLD | NEW |