mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	 a98f5c7251
			
		
	
	
		a98f5c7251
		
	
	
	
	
		
			
			Although we translate e.g `block` to `block flow` for internal use in the engine, CSS-DISPLAY-3 tells us to use the short form in serializations for compatibility reasons. This adds 9 points to our score on https://html5test.com/ :^)
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| var __outputElement = null;
 | |
| 
 | |
| function println(s) {
 | |
|     __outputElement.appendChild(document.createTextNode(s + "\n"));
 | |
| }
 | |
| 
 | |
| document.addEventListener("DOMContentLoaded", function () {
 | |
|     __outputElement = document.createElement("pre");
 | |
|     __outputElement.setAttribute("id", "out");
 | |
|     document.body.appendChild(__outputElement);
 | |
| });
 | |
| 
 | |
| function test(f) {
 | |
|     document.addEventListener("DOMContentLoaded", f);
 | |
| }
 |