mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:42:44 +00:00 
			
		
		
		
	This patch makes a few changes to the way we calculate line-height: - `line-height: normal` is now resolved using metrics from the used font (specifically, round(A + D + lineGap)). - `line-height: calc(...)` is now resolved at style compute time. - `line-height` values are now absolutized at style compute time. As a consequence of the above, we no longer need to walk the DOM ancestor chain looking for line-heights during style computation. Instead, values are inherited, resolved and absolutized locally. This is not only much faster, but also makes our line-height metrics match those of other engines like Gecko and Blink.
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
|    valueAsNumber getter:
 | |
| hidden: NaN
 | |
| text: NaN
 | |
| search: NaN
 | |
| tel: NaN
 | |
| url: NaN
 | |
| email: NaN
 | |
| password: NaN
 | |
| date: NaN
 | |
| month: NaN
 | |
| week: NaN
 | |
| time: NaN
 | |
| datetime-local: NaN
 | |
| number: 100
 | |
| range: 100
 | |
| color: NaN
 | |
| checkbox: NaN
 | |
| radio: NaN
 | |
| file: NaN
 | |
| submit: NaN
 | |
| image: NaN
 | |
| reset: NaN
 | |
| button: NaN
 | |
| valueAsNumber setter:
 | |
| hidden threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| text threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| search threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| tel threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| url threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| email threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| password threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| date did not throw: NaN
 | |
| month did not throw: NaN
 | |
| week did not throw: NaN
 | |
| time did not throw: NaN
 | |
| datetime-local threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| number did not throw: 100
 | |
| range did not throw: 100
 | |
| color threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| checkbox threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| radio threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| file threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| submit threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| image threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| reset threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 | |
| button threw exception: InvalidStateError: valueAsNumber: Invalid input type used
 |