mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:22:43 +00:00 
			
		
		
		
	 2844f89a83
			
		
	
	
		2844f89a83
		
	
	
	
	
		
			
			In some situations, a layout box should not participate in the standard layout process, for example when set to `position: absolute`.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			501 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			501 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/Layout/FormattingContext.h>
 | |
| 
 | |
| namespace Web::Layout {
 | |
| 
 | |
| class FlexFormattingContext final : public FormattingContext {
 | |
| public:
 | |
|     FlexFormattingContext(Box& containing_block, FormattingContext* parent);
 | |
|     ~FlexFormattingContext();
 | |
| 
 | |
|     virtual bool inhibits_floating() const override { return true; }
 | |
| 
 | |
|     virtual void run(Box&, LayoutMode) override;
 | |
| };
 | |
| 
 | |
| }
 |