- From: Karl Dubost via GitHub <sysbot+gh@w3.org>
- Date: Tue, 04 Mar 2025 13:01:26 +0000
- To: public-css-archive@w3.org
karlcow has just created a new issue for https://github.com/w3c/csswg-drafts: == hidden attribute and display values for tr, thead, tbody, tfoot, colgroup, col == The tests at https://wpt.fyi/results/html/rendering/non-replaced-elements/tables/hidden-attr.html for `tr`, `thead`, `tbody`, `tfoot`, `colgroup`, `col`. fail in any browsers. ``` <table> <thead hidden></thead> </table> ``` The tests try to assess that `window.getComputedStyle(document.querySelector('thead')).display` should return `table-header-group` like in the normal case. ``` <table> <thead></thead> </table> ``` but once the `hidden` attribute has been specified, all browsers return `none` (which seems logical). Both https://html.spec.whatwg.org/multipage/interaction.html#attr-hidden The HTML css defines ``` colgroup, colgroup[hidden] { display: table-column-group; } col, col[hidden] { display: table-column; } thead, thead[hidden] { display: table-header-group; } tbody, tbody[hidden] { display: table-row-group; } tfoot, tfoot[hidden] { display: table-footer-group; } tr, tr[hidden] { display: table-row; } ``` The default CSS doesn't seem to have the same stance. ``` :matches(colgroup,col,thead,tbody,tfoot,tr,td,th)[hidden] { visibility: collapse; } ``` Should these WPT tests be changed to reflect the reality of the implementations? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11819 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 4 March 2025 13:01:27 UTC