This is computed here: https://github.com/sheremet-va/ivya/blob/56a31c992baab353f82b46f3cadde9292eb3076a/src/roleUtils.ts#L238-L248
In Firefox, this is the related code: https://searchfox.org/firefox-main/rev/644f0db17749554fe23a45b43e77e61f42acdfd9/accessible/html/HTMLTableAccessible.cpp#220-283
I don't know what Chrome does, and I don't know if the library should really mimic the same complex logic.
But I thought I would report it still, in case you'd find this interesting.
This is computed here: https://github.com/sheremet-va/ivya/blob/56a31c992baab353f82b46f3cadde9292eb3076a/src/roleUtils.ts#L238-L248
In Firefox, this is the related code: https://searchfox.org/firefox-main/rev/644f0db17749554fe23a45b43e77e61f42acdfd9/accessible/html/HTMLTableAccessible.cpp#220-283
I don't know what Chrome does, and I don't know if the library should really mimic the same complex logic.
But I thought I would report it still, in case you'd find this interesting.