1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 00:57:36 +00:00

LibWeb: Add some more CSS "display" values

This commit is contained in:
Andreas Kling 2021-01-07 14:40:02 +01:00
parent 5a97e8bb23
commit f655a60773
3 changed files with 12 additions and 0 deletions

View file

@ -104,7 +104,10 @@
"static", "static",
"sticky", "sticky",
"table", "table",
"table-caption",
"table-cell", "table-cell",
"table-column",
"table-column-group",
"table-footer-group", "table-footer-group",
"table-header-group", "table-header-group",
"table-row", "table-row",

View file

@ -398,6 +398,12 @@ CSS::Display StyleProperties::display() const
return CSS::Display::TableRow; return CSS::Display::TableRow;
case CSS::ValueID::TableCell: case CSS::ValueID::TableCell:
return CSS::Display::TableCell; return CSS::Display::TableCell;
case CSS::ValueID::TableColumn:
return CSS::Display::TableColumn;
case CSS::ValueID::TableColumnGroup:
return CSS::Display::TableColumnGroup;
case CSS::ValueID::TableCaption:
return CSS::Display::TableCaption;
case CSS::ValueID::TableRowGroup: case CSS::ValueID::TableRowGroup:
return CSS::Display::TableRowGroup; return CSS::Display::TableRowGroup;
case CSS::ValueID::TableHeaderGroup: case CSS::ValueID::TableHeaderGroup:

View file

@ -87,6 +87,9 @@ enum class Display {
TableHeaderGroup, TableHeaderGroup,
TableRowGroup, TableRowGroup,
TableFooterGroup, TableFooterGroup,
TableColumn,
TableColumnGroup,
TableCaption,
}; };
enum class WhiteSpace { enum class WhiteSpace {