You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other browsers seem to render tr { background-color: black } the same as tr > th, tr > td { background-color: black }. Servo does not. (Not sure where that's spec'ed, or even if it is)
the background covers exactly the full area of all cells that originate in the row, even if they span outside the row, but this difference in area does not affect background image positioning.
TableRow::build_display_list is currently responsible for drawing this background. It delegates to a BlockFlow method, which doesn't know about the special rules for table row/column/rowgroup/colgroup background areas.
Perhaps FragmentDisplayListBuilding::build_display_list_for_background_if_applicable should not draw any background for table rows (or columns, or rowgroups, or colgroups). Instead, each table cell fragment could draw the backgrounds for each of these, in the layer order from the spec above. The TableCell flow would need access to the styles of its containing row/column flows (or at least their background properties).
Activity
emilio commentedon Jan 16, 2018
Thanks for the report @KwanEsq!
Testcase for posterity, with some superfluous tag removal:
mbrubeck commentedon Feb 9, 2018
This behavior is specified here: https://drafts.csswg.org/css2/tables.html#table-layers
mbrubeck commentedon Feb 9, 2018
TableRow::build_display_listis currently responsible for drawing this background. It delegates to aBlockFlowmethod, which doesn't know about the special rules for table row/column/rowgroup/colgroup background areas.Perhaps
FragmentDisplayListBuilding::build_display_list_for_background_if_applicableshould not draw any background for table rows (or columns, or rowgroups, or colgroups). Instead, each table cell fragment could draw the backgrounds for each of these, in the layer order from the spec above. The TableCell flow would need access to the styles of its containing row/column flows (or at least their background properties).Auto merge of #20034 - Manishearth:table-backgrounds, r=<try>
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck
Auto merge of #20034 - Manishearth:table-backgrounds, r=mbrubeck