mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:12:43 +00:00 
			
		
		
		
	 bec07d4af7
			
		
	
	
		bec07d4af7
		
	
	
	
	
		
			
			Using fixed-point saturated arithmetics for CSSPixels allows to avoid accumulating floating-point errors. This implementation is not complete yet: currently saturated arithmetics implemented only for addition. But it is enough to not regress any of layout tests we have :) See https://github.com/SerenityOS/serenity/issues/18566
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			719 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			719 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| Viewport <#document> at (0,0) content-size 800x600 children: not-inline
 | |
|   BlockContainer <html> at (1,1) content-size 798x120 [BFC] children: not-inline
 | |
|     BlockContainer <body> at (10,10) content-size 780x102 children: not-inline
 | |
|       BlockContainer <div.outer> at (11,11) content-size 100x100 children: not-inline
 | |
|         BlockContainer <(anonymous)> at (12,12) content-size 50x50 children: inline
 | |
|           line 0 width: 0, height: 21.828125, bottom: 21.828125, baseline: 16.890625
 | |
|             frag 0 from TextNode start: 0, length: 0, rect: [12,12 0x21.828125]
 | |
|               ""
 | |
|           TextNode <#text>
 | |
|         BlockContainer <div.inner> at (12,64) content-size 98x0 children: inline
 | |
|           TextNode <#text>
 |