WICG / soft-navigations

Heuristics to detect Single Page Apps soft navigations
https://wicg.github.io/soft-navigations/
Other
46 stars 6 forks source link

Some soft navigations don't modify the DOM and hence not detected #8

Open yoavweiss opened 1 year ago

yoavweiss commented 1 year ago

crbug/1372020 provides an example for a site where soft navigations modify the URL, and then animate to a previously hidden part of the page. As such, they are not triggering DOM modifications on their own, but from a user experience, that doesn't matter much. Ideally we can avoid these false negatives.

yoavweiss commented 1 year ago

The example in question seems to be switching between "tabs" be applying visibility hidden and transform -100% to the tabs content element.

One potential approach could be to expand the heuristic to try and capture visibility changes and/or CSS transforms that impact a large %age of the viewport.

At the same time, I wonder if there's expected work on markup patterns to enable tabs in a more semantic way (that'd be easier to detect)

^^ @mfreed7

mfreed7 commented 1 year ago

At the same time, I wonder if there's expected work on markup patterns to enable tabs in a more semantic way (that'd be easier to detect)

OpenUI (and perhaps soon @dbaron) is interested in working on tabs, perhaps by adding something like <tabs>. But this almost surely isn't happening in 2023. So I wouldn't hang your hat on that solving this problem soon, sorry.