Re: [csswg-drafts] [css-ui] Add a property controlling the navigation order

There are mixed types that make sense, too, and I think they could be achieved easily with this proposed property by exploiting the cascade appropriately. 

However, in many documents you encounter different structural hierarchic levels of navigation and it would be awesome if this property or a companion could control that as well. Imagine a simple textual document where the user can navigate from heading to heading: sometimes it makes sense to cycle through all headings of the current level and sometimes it makes sense to just go to the next heading whichever its level.

```` css
section {nav-order: structural shallow;} /* h1:first-of-type -> h1:nth-of-type(...) -> h1:last-of-type -> h1:first-of-type ... */
section :not(h1):focus {nav-order: structural deep;} /* does that make sense? */

form {nav-order: structural deep;} /* form>fieldset -> fieldset>label>input -> ... -> form>fieldset ... */
````


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

Received on Tuesday, 29 August 2017 14:18:29 UTC