mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	 49fcc5dcd8
			
		
	
	
		49fcc5dcd8
		
	
	
	
	
		
			
			Instead of implementing stacking context painting order exactly as it is defined in CSS2.2 "Appendix E. Elaborate description of Stacking Contexts" we need to account for changes in the latest standards where a box can establish a stacking context without being positioned, for example, by having an opacity different from 1. Fixes https://github.com/SerenityOS/serenity/issues/21137
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			344 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			344 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><html lang="en"><style>
 | |
| * {
 | |
|     font-size: 60px;
 | |
| }
 | |
| body {
 | |
|     display: grid;
 | |
|     grid-template-areas: "content";
 | |
| }
 | |
| .abspos {
 | |
|     grid-area: content;
 | |
|     background: gray;
 | |
|     width: 100px;
 | |
|     height: 100px;
 | |
| }
 | |
| .text {
 | |
|     grid-area: content;
 | |
| }
 | |
| </style><body><div class="abspos"></div><div class="text">hello friends</div></body>
 |