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:
Oriol Brufau 2025-01-23 06:23:03 -08:00 committed by GitHub
parent aa54a0b1a6
commit 5e5379d3bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 290 additions and 21 deletions

View file

@ -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 {