mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	 110eeb8591
			
		
	
	
		110eeb8591
		
	
	
	
	
		
			
			The CSS box-shadow property takes 2-4 properties that are `<length>`s, those being: - offset-x - offset-y - blur-radius - spread-radius Previously these were resolved directly to concrete Lengths at parse time, but now they will be parsed as LengthStyleValues and/or CalculatedStyleValues and be stored that way until styles are later resolved.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			450 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         const e = document.createElement("div");
 | |
|         document.body.appendChild(e);
 | |
|         const definition = "0 calc(5px - 10px) 0 calc(2px + 3px)";
 | |
|         e.style.boxShadow = definition;
 | |
|         const computedStyle = getComputedStyle(e);
 | |
|         const serialized = computedStyle.boxShadow;
 | |
|         println(definition + " => " + serialized);
 | |
|         e.remove();
 | |
|     });
 | |
| </script>
 |