Page MenuHomePhabricator

Sticky header offsetting doesn't work with complex table headers
Open, LowPublic

Description

Certain tables in articles have sticky headers themselves. They are meant to stick to the sticky header on scroll, but when the headers have multiple rows themselves, they do not (see QA steps).

In T6740 it was noted that the parser does not support thead elements. While it was agreed it should, addressing this problem in the parser at this stage is tricky, so we should consider workarounds.

QA steps

Expected

Screen Shot 2022-11-14 at 11.00.23 AM.png (486×2 px, 236 KB)

Actual

Screen Shot 2022-11-14 at 11.00.03 AM.png (442×2 px, 212 KB)

Developers

We should consider workaround solutions for Vector. Perhaps for example .mw-sticky-header-table-element > tbody tr:first-child might be a rule worth adding.