mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:52:45 +00:00 
			
		
		
		
	Tests/LibWeb: Add ref test for inline node styles
Turn Base/res/html/misc/inline-node.html into ref test.
This commit is contained in:
		
							parent
							
								
									d1d6da6ab6
								
							
						
					
					
						commit
						facdbe13c7
					
				
					 3 changed files with 43 additions and 0 deletions
				
			
		
							
								
								
									
										34
									
								
								Tests/LibWeb/Ref/inline-node.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Tests/LibWeb/Ref/inline-node.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| 
 | ||||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
| <head> | ||||
|     <link rel="match" href="reference/inline-node-ref.html" /> | ||||
|     <meta charset="UTF-8"> | ||||
|     <title>Inline Node styling test</title> | ||||
|     <style> | ||||
|         body { | ||||
|             line-height: 200%; | ||||
|         } | ||||
| 
 | ||||
|         .highlight { | ||||
|             background-color: orange; | ||||
|             border-radius: 6px; | ||||
|         } | ||||
| 
 | ||||
|         .bg-highlight { | ||||
|             background: magenta; | ||||
|             color: white; | ||||
|             border-radius: 6px; | ||||
|         } | ||||
| 
 | ||||
|         .br-highlight { | ||||
|             border: 2px solid green; | ||||
|             border-radius: 6px; | ||||
|             box-shadow: 4px 4px 4px darkgreen; | ||||
|         } | ||||
|     </style> | ||||
| </head> | ||||
| <body> | ||||
|     Hello world <span class="highlight">this is some text</span> not in a box. <span class="bg-highlight">This text has a background</span> and <span class="br-highlight">this text has a shadow!</span> | ||||
| </body> | ||||
| </html> | ||||
							
								
								
									
										
											BIN
										
									
								
								Tests/LibWeb/Ref/reference/images/inline-node-ref.png
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Tests/LibWeb/Ref/reference/images/inline-node-ref.png
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 16 KiB | 
							
								
								
									
										9
									
								
								Tests/LibWeb/Ref/reference/inline-node-ref.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Tests/LibWeb/Ref/reference/inline-node-ref.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| <style> | ||||
| * { | ||||
|     margin: 0; | ||||
| } | ||||
| body { | ||||
|     background-color: white; | ||||
| } | ||||
| </style> | ||||
| <img src="./images/inline-node-ref.png"> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aliaksandr Kalenik
						Aliaksandr Kalenik