forked from mirrors/gecko-dev
		
	 937b1f9834
			
		
	
	
		937b1f9834
		
	
	
	
	
		
			
			We were bailing out because scroll anchoring adjustments can make this check fail: * https://searchfox.org/mozilla-central/rev/22b330ecb3edba1536a54887060cbdd09db21c59/layout/base/PresShell.cpp#3194 Differential Revision: https://phabricator.services.mozilla.com/D38397 --HG-- extra : moz-landing-system : lando
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			705 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			705 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html>
 | |
| <style>
 | |
| .spacer { height: 200vh; }
 | |
| </style>
 | |
| <script>
 | |
|   function loadFailed() {
 | |
|     parent.ok(false, "Image load should not fail");
 | |
|   }
 | |
| </script>
 | |
| <div class="spacer"></div>
 | |
| <img id="fast" src="file_SlowTallImage.sjs?fast" onerror="loadFailed()">
 | |
| <div class="spacer"></div>
 | |
| <img id="slow" src="file_SlowTallImage.sjs?slow" onerror="loadFailed()">
 | |
| <div class="spacer"></div>
 | |
| <script>
 | |
| onload = function() {
 | |
|   setTimeout(function() {
 | |
|     let rect = document.getElementById("slow").getBoundingClientRect();
 | |
|     parent.is(rect.height, 1000, "#slow should take space");
 | |
|     parent.is(rect.top, 0, "#slow should be at the top of the viewport");
 | |
|     parent.SimpleTest.finish();
 | |
|   }, 0);
 | |
| }
 | |
| </script>
 |