display:contents breaks the semantics of elements with these roles.
<rdar://problem/91931754>
role="tree" and role="treeitem" addressed with: https://bugs.webkit.org/show_bug.cgi?id=257444
role="directory" addressed with: https://bugs.webkit.org/show_bug.cgi?id=256950
https://bugs.webkit.org/show_bug.cgi?id=258430 addresses display:contents for roles grid, treegrid, table, row, gridcell, cell, and columnheader. This covers all the role types listed in the title. Please file separate bugs for any other issues discovered. Thanks!