mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 22:02:44 +00:00 
			
		
		
		
	 546143e9a6
			
		
	
	
		546143e9a6
		
	
	
	
	
		
			
			Before comparing the elements of two vectors, we have to check that they have the same length. :^) Fixes a crash seen on https://chat.openai.com/
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			558 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			558 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><script src="../include.js"></script><body><script>
 | |
|     test(() => {
 | |
|         let body = document.body;
 | |
|         body.style.width = 'max(10px, 20px, 30px)';
 | |
|         body.style.width = 'max(10px, 20px)';
 | |
|         body.style.width = 'min(10px, 20px, 30px)';
 | |
|         body.style.width = 'min(10px, 20px)';
 | |
|         body.style.width = 'calc(10px + 20px + 30px)';
 | |
|         body.style.width = 'calc(10px + 20px)';
 | |
|         body.style.width = 'calc(10px * 20px * 30px)';
 | |
|         body.style.width = 'calc(10px * 20px)';
 | |
|     });
 | |
| </script>PASS! (didn't crash)
 |