mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
e75041d53f
commit
4f8dcfe6f9
7 changed files with 147 additions and 11 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue