Accessible expanding/collapsing table

This is an accessible table that supports expanding/collapsing the last cell using flexbox instead of colspan. Most other implementations of this patttern simply add a new row with a td element and a colspan attribute to accomplish the same task, but this removes the column header relationship, removes the row context, and creates a weird kind of combination data/layout table.

Notes and concerns

Date Payee Amount Actions Details
2177-05-29 Moon soda $55
2177-05-29 Venus soda $51
2177-05-29 Mars soda $58
view source button

Created by Michael Fairchild. Props to @shaderpixel for some flexbox advice.