mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:57:35 +00:00
LibWeb: Take rowspan into account while table formatting
This commit is contained in:
parent
1c6783cd7e
commit
dbf76e8ae1
3 changed files with 9 additions and 1 deletions
|
@ -29,4 +29,11 @@ size_t TableCellBox::colspan() const
|
|||
return verify_cast<DOM::Element>(*dom_node()).attribute(HTML::AttributeNames::colspan).to_uint().value_or(1);
|
||||
}
|
||||
|
||||
size_t TableCellBox::rowspan() const
|
||||
{
|
||||
if (!dom_node())
|
||||
return 1;
|
||||
return verify_cast<DOM::Element>(*dom_node()).attribute(HTML::AttributeNames::rowspan).to_uint().value_or(1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue