mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:12:43 +00:00 
			
		
		
		
	 160f434769
			
		
	
	
		160f434769
		
	
	
	
	
		
			
			These are: - `initial` - `inherit` - `unset` Cascade4 and 5 also define `revert` and `revert-layer`, but let's not get ahead of ourselves. :^)
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			873 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			873 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| <head>
 | |
|     <meta charset="UTF-8"/>
 | |
|     <title>Initial</title>
 | |
|     <style>
 | |
|         span {
 | |
|             background: lime;
 | |
|         }
 | |
|         .initial {
 | |
|             font-weight: initial;
 | |
|         }
 | |
|         .inherit {
 | |
|             font-weight: inherit;
 | |
|         }
 | |
|         .unset {
 | |
|             font-weight: unset;
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| <body>
 | |
| <p>
 | |
|     This is some text. <b>This text is bold, <span class="initial">but this is not, since it's set to initial,</span> and this is bold again.</b>
 | |
| </p>
 | |
| <p>
 | |
|     This is some text. <b>This text is bold, <span class="inherit">and so is this, because it's set to inherit,</span> and this is bold again.</b>
 | |
| </p>
 | |
| <p>
 | |
|     This is some text. <b>This text is bold, <span class="unset">and so is this, because it's set to unset and font-weight is inherited,</span> and this is bold again.</b>
 | |
| </p>
 | |
| </body>
 | |
| </html>
 |