mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
LibWeb: Parse line names in grid track size declarations
Parse line names in the grid-template-* CSS properties.
This commit is contained in:
parent
93211f45a6
commit
78a573d678
3 changed files with 64 additions and 8 deletions
|
@ -92,20 +92,23 @@ private:
|
|||
|
||||
class GridTrackSizeList {
|
||||
public:
|
||||
GridTrackSizeList(Vector<CSS::ExplicitGridTrack> track_list);
|
||||
GridTrackSizeList(Vector<CSS::ExplicitGridTrack> track_list, Vector<Vector<String>> line_names);
|
||||
GridTrackSizeList();
|
||||
|
||||
static GridTrackSizeList make_auto();
|
||||
|
||||
Vector<CSS::ExplicitGridTrack> track_list() const { return m_track_list; }
|
||||
Vector<Vector<String>> line_names() const { return m_line_names; }
|
||||
|
||||
String to_string() const;
|
||||
bool operator==(GridTrackSizeList const& other) const
|
||||
{
|
||||
return m_track_list == other.track_list();
|
||||
return m_line_names == other.line_names() && m_track_list == other.track_list();
|
||||
}
|
||||
|
||||
private:
|
||||
Vector<CSS::ExplicitGridTrack> m_track_list;
|
||||
Vector<Vector<String>> m_line_names;
|
||||
};
|
||||
|
||||
class GridRepeat {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue