mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	 0634d11318
			
		
	
	
		0634d11318
		
	
	
	
	
		
			
			Otherwise `attr(|name, "fallback")` becomes `attr(| name , "fallback")` The test here is slightly aspirational. There are other rules for serialization we don't follow (like stripping whitespace entirely from many places) so these are marked with FIXMEs.
		
			
				
	
	
		
			22 lines
		
	
	
	
		
			902 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
	
		
			902 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         function serialize(input) {
 | |
|             document.body.style.content = input;
 | |
|             println(document.body.style.content);
 | |
|         }
 | |
| 
 | |
|         serialize('attr(foo)');
 | |
|         // FIXME: This should produce `attr(foo)` but doesn't yet.
 | |
|         serialize('attr(    foo    )');
 | |
|         serialize('attr(foo, "fallback")');
 | |
|         // FIXME: This should produce `attr(foo, "fallback")` but doesn't yet.
 | |
|         serialize('attr(   foo   ,    "fallback"   )');
 | |
|         serialize('attr(foo string)');
 | |
|         // FIXME: This should produce `attr(foo string)` but doesn't yet.
 | |
|         serialize('attr(  foo   string  )');
 | |
|         serialize('attr(foo string, "fallback")');
 | |
|         // FIXME: This should produce `attr(foo string, "fallback")` but doesn't yet.
 | |
|         serialize('attr(  foo   string  ,   "fallback"  )');
 | |
|     });
 | |
| </script>
 |