mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
layout: Hide collapsed borders crossed by spanning cells (#35129)
For example, a cell with `rowspan="2"` can cross a collapsed border that was set on the rows. Now the slice of this row border that is crossed by the cell will be hidden. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
aa54a0b1a6
commit
5e5379d3bf
7 changed files with 290 additions and 21 deletions
|
@ -240,6 +240,10 @@ impl BorderStyleColor {
|
|||
Self::new(border.border_left_style, border.border_left_color.clone()),
|
||||
)
|
||||
}
|
||||
|
||||
pub(crate) fn hidden() -> Self {
|
||||
Self::new(BorderStyle::Hidden, Color::TRANSPARENT_BLACK)
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for BorderStyleColor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue