Re: [csswg-drafts] [css-nav-1] How author know spatnav will work by default in specific user agent? (#3385)

---

Migrated from https://github.com/WICG/spatial-navigation/issues/41#issuecomment-376861084
Originally created by @frivoal on *Wed, 28 Mar 2018 11:59:30 GMT*

---
I think we should probably have a media query, which lets the author ask about the presence of spatnav, and probably also about tab-based navigation.

Maybe something like this: `navigation: sequential | spatial | none`, so that you can write

`@media (navigation: spatial) {...}` in CSS or
`if window.matchMedia("(navigation: spatial)").matches) { ... }` in JS

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3385#issuecomment-443619120 using your GitHub account

Received on Monday, 3 December 2018 07:53:10 UTC