mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +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
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			2.2 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| Viewport <#document> at (0,0) content-size 800x600 children: not-inline
 | |
|   BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
 | |
|     BlockContainer <body> at (8,8) content-size 784x25.46875 children: not-inline
 | |
|       TableWrapper <(anonymous)> at (8,8) content-size 49.21875x25.46875 [BFC] children: not-inline
 | |
|         Box <table> at (8,8) content-size 49.21875x25.46875 table-box [TFC] children: not-inline
 | |
|           BlockContainer <(anonymous)> (not painted) children: inline
 | |
|             TextNode <#text>
 | |
|           Box <tbody> at (8,8) content-size 43.21875x19.46875 table-row-group children: not-inline
 | |
|             Box <tr> at (10,10) content-size 43.21875x9.734375 table-row children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (11,14.859375) content-size 0x0 table-cell [BFC] children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (16,12) content-size 37.21875x17.46875 table-cell [BFC] children: inline
 | |
|                 line 0 width: 37.21875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
 | |
|                   frag 0 from TextNode start: 0, length: 4, rect: [16,12 37.21875x17.46875]
 | |
|                     "Test"
 | |
|                 TextNode <#text>
 | |
|                 InlineNode <a>
 | |
|                   TextNode <#text>
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|             BlockContainer <(anonymous)> (not painted) children: inline
 | |
|               TextNode <#text>
 | |
|             Box <tr> at (10,21.734375) content-size 43.21875x9.734375 table-row children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|               BlockContainer <td> at (11,26.59375) content-size 0x0 table-cell [BFC] children: not-inline
 | |
|               BlockContainer <(anonymous)> (not painted) children: inline
 | |
|                 TextNode <#text>
 | |
|             BlockContainer <(anonymous)> (not painted) children: inline
 | |
|               TextNode <#text>
 |