mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Start work on table row height and vertical-align (#31246)
This implements a very naive row height allocation approach. It has just enough to implement `vertical-align` in table cells. Rowspanned cells get enough space for their content, with the extra space necessary being allocated to the last row. There's still a lot missing here, including proper distribution of row height to rowspanned cells. Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
39b3beda5d
commit
35fb95ca85
21 changed files with 261 additions and 132 deletions
|
@ -202,6 +202,7 @@ impl BoxFragment {
|
|||
\nmargin={:?}\
|
||||
\nclearance={:?}\
|
||||
\nscrollable_overflow={:?}\
|
||||
\nbaselines={:?}\
|
||||
\noverflow={:?} / {:?}",
|
||||
self.base,
|
||||
self.content_rect,
|
||||
|
@ -210,6 +211,7 @@ impl BoxFragment {
|
|||
self.margin,
|
||||
self.clearance,
|
||||
self.scrollable_overflow(&PhysicalRect::zero()),
|
||||
self.baselines,
|
||||
self.style.get_box().overflow_x,
|
||||
self.style.get_box().overflow_y,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue