Truly independent web browser
/*
* Copyright (c) 2018-2025, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Export.h>
#include <LibWebCommon/PixelUnits.h>
namespace Web::Painting {
struct PixelBox {
CSSPixels top { 0 };
CSSPixels right { 0 };
CSSPixels bottom { 0 };
CSSPixels left { 0 };
};
struct WEB_API BoxModelMetrics {
public:
PixelBox margin;
PixelBox padding;
PixelBox border;
PixelBox inset;
PixelBox border_box() const;
};
}