mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:22:44 +00:00 
			
		
		
		
	 fd37ad3a84
			
		
	
	
		fd37ad3a84
		
	
	
	
	
		
			
			Make sure the insets and margins calculated according to the spec are not later ignored and ad-hoc recomputed in layout_absolutely_positioned_element. Use the static position calculation in a couple of places where the spec (and comment) was indicating it should be used. Fixes #19362
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			438 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			438 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
| *  { border: 1px solid black; }
 | |
| div {
 | |
|     position: absolute;
 | |
|     width: 10px;
 | |
|     height: 10px;
 | |
| }
 | |
| .only-t-l {
 | |
|     top: 5px;
 | |
|     left: 5px;
 | |
|     background-color: red;
 | |
| }
 | |
| .only-mt-ml {
 | |
|     margin: 5px;
 | |
|     background-color: orange;
 | |
| }
 | |
| .both {
 | |
|     top: 5px;
 | |
|     left: 5px;
 | |
|     margin: 5px;
 | |
|     background-color: green;
 | |
| }
 | |
| </style>
 | |
| <body>
 | |
|     <div class="only-t-l"></div>
 | |
|     <div class="only-mt-ml"></div>
 | |
|     <div class="both"></div>
 |