mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 16:18:12 +00:00
LibWeb: Implement auto-fill and auto-fit
Implement auto-fill and auto-fit for the grid, which allow for placing as many columns as will fit within a given container size.
This commit is contained in:
parent
4745a0c20a
commit
53f3df78e5
3 changed files with 135 additions and 1 deletions
|
@ -46,6 +46,11 @@ public:
|
|||
return (m_type == Type::Length && m_length.is_auto());
|
||||
}
|
||||
|
||||
bool is_definite() const
|
||||
{
|
||||
return (m_type == Type::Length && !m_length.is_auto()) || is_percentage();
|
||||
}
|
||||
|
||||
String to_string() const;
|
||||
bool operator==(GridTrackSize const& other) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue