mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:52:45 +00:00 
			
		
		
		
	 dba261f79b
			
		
	
	
		dba261f79b
		
	
	
	
	
		
			
			The Acid1 test has a bit of an unusual background - the html and body tags have different background colors. Our painting order of the DOM was such that the body background was painted first, then all other elements were painted in-phase according to Appendix E of CSS 2.1. So the html element's background color was painted over the body background. This removes the special handling of the body background from InitialContainingBlockBox and now all boxes are painted in-phase. Doing this also exposed that we weren't handling Section 2.11.2 of the spec; when the html background is unset, the body's background should be propagated to the html element.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			466 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			466 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/HTML/HTMLElement.h>
 | |
| 
 | |
| namespace Web::HTML {
 | |
| 
 | |
| class HTMLHtmlElement final : public HTMLElement {
 | |
| public:
 | |
|     using WrapperType = Bindings::HTMLHtmlElementWrapper;
 | |
| 
 | |
|     HTMLHtmlElement(DOM::Document&, QualifiedName);
 | |
|     virtual ~HTMLHtmlElement() override;
 | |
| 
 | |
|     bool should_use_body_background_properties() const;
 | |
| };
 | |
| 
 | |
| }
 |