Re: [csswg-drafts] [css-tables] Painted extent of table cell background when border collapsing is in effect (#9643)

> A second question is whether the painting of the background should actually be restricted to the interior of the collapsed borders in all cases, not only when the cell forms a new stacking context. In other words, are current browsers wrong to paint the cell background underneath the inner half of the borders, as seen in cell 1? 

This on the surface may seem like the right thing to do - but once you get into more complex cases its less clear cut. E.g. when introducing spanning cells into the mix - do you then draw each rectangle (with a different clip) - as you still want a background image to draw correctly (and not repeat).

Another thing to keep in mind is that rows/columns/sections also draw underneath the collapsed borders currently - which is consistent with the table cells (in Blink/Webkit) as they are all drawn in the table background layer.

There isn't a great optimal solution here (welcome to tables!) but I think the current WebKit/Blink behaviour has the right tradeoffs.

Ian 

-- 
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9643#issuecomment-1830552486 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 28 November 2023 19:38:11 UTC