mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:17:44 +00:00
LibWeb: Support display inline-table
Add support for inline-table display type with corrresponding changes in tree builder to generate inline anonymous wrapper around inline table boxes.
This commit is contained in:
parent
87b18f9304
commit
276a77f02d
5 changed files with 15 additions and 5 deletions
|
@ -18,7 +18,12 @@ public:
|
|||
TableBox(DOM::Document&, DOM::Element*, CSS::ComputedValues);
|
||||
virtual ~TableBox() override;
|
||||
|
||||
static CSS::Display static_display() { return CSS::Display::from_short(CSS::Display::Short::Table); }
|
||||
static CSS::Display static_display(bool inline_outside)
|
||||
{
|
||||
if (inline_outside)
|
||||
return CSS::Display::from_short(CSS::Display::Short::InlineTable);
|
||||
return CSS::Display::from_short(CSS::Display::Short::Table);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue