layout: Set padding to zero on tables in collapsed-borders mode (#34908)

https://drafts.csswg.org/css2/#collapsing-borders
> in this model, a table does not have padding

https://drafts.csswg.org/css-tables/#collapsed-style-overrides
> The padding of the table-root is ignored (as if it was set to 0px).

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-01-09 06:06:26 -08:00 committed by GitHub
parent e75041d53f
commit 4f8dcfe6f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 147 additions and 11 deletions

View file

@ -343,7 +343,7 @@ impl<T: Copy> LogicalSides<T> {
}
}
impl LogicalSides<&'_ LengthPercentage> {
impl LogicalSides<LengthPercentage> {
pub fn percentages_relative_to(&self, basis: Au) -> LogicalSides<Au> {
self.map(|value| value.to_used_value(basis))
}