mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
layout: Don't let table grid boxes inherit display: inline-table
(#35264)
The outer display type of a table element applies to the table wrapper box. The table grid box needs to be block-level as defined in https://drafts.csswg.org/css-tables/#table-grid-box Therefore this sets `display: table` on table grid boxes, and then when painting collapsed table borders we can use the usual logic to compute the StackingContextSection. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
7301af8468
commit
27c40fcd29
2 changed files with 7 additions and 4 deletions
|
@ -269,6 +269,9 @@ svg > * {
|
|||
contain: unset;
|
||||
container: unset;
|
||||
scroll-margin: unset;
|
||||
|
||||
/* The grid needs to be block-level, so avoid inheriting `display: inline-table`. */
|
||||
display: table;
|
||||
}
|
||||
|
||||
*|*::-servo-legacy-anonymous-block {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue