Skip to content

Conversation

@frivoal
Copy link
Collaborator

@frivoal frivoal commented Nov 15, 2018

This imports the spatial navigation spec from WICG, including the whole git history, but removing irrelevant files.

Jihye Hong and others added 30 commits June 6, 2018 21:07
- Rename spatNavSearchInside() to selectBestCandidateFromEdge
- Modify spatNavSearch to match with the spec
- Add more comments about the functions
filteredCandidates() is for:
- Get rid of the starting point from the focusables
- Get rid of the elements which aren't in the direction from the focusables

This is related to WICG/spatial-navigation#62
This function won't be used anymore.
Don't duplicate information found in the specification, and instead
focus on what the polyfill itself is, how to use it, and what its status
is.
- Considers the case that when the starting point is a position.
  ref: https://wicg.github.io/spatial-navigation/#spatial-navigation-steps (step 3)
Add the polyfill names for getSpatnavContainer() and focusableAreas()
- Match Element.focusableAreas with the syntax in Spec
  - The function takes an option (visible / all) as a parameter
- Match Element.getSpatnavContainer with the syntax in Spec
- Get rid of findCandidates function which isn't used.
   - The same feature is supported by Element.focusableAreas
- Fix indentation
- Use LF instead of CRLF
- Use const variables
- etc
- Use LF instead of CRLF
- Use const variables
- Add missing semi-colons
- etc
Previously, the polyfill supported the feature of spatnav container with specifying the class.
But this changes allow to use CSS custom property for supporting the same feature.
Add the detailed comments about functions.
This indicates the release version of spatnav polyfill.
This will be referenced by enact framework.
…perty

Polyfill spatnav contain property
- Explain how to set the option of using standard name
- focusNavigationHeuristics() which calls the polyfill takes the option
Jihye Hong and others added 15 commits November 13, 2018 09:40
Modify importing the polyfill for the test files
Test cases about the spatial navigation on the grid-like layout.
Those are aimed to
- Experiment the proper result of the distance function
- Investigate the reasonable heuristic spatial navigation behavior on the grid-like layout.
Test case about the heuristic spatial navigation behavior for a transformed element.
Test case about the heuristic spatial navigation behavior of the fragmented elements.
These are a bit special, since they're not actually testing the spec,
but rather some UX expectations. Move the tests to a dedicated
subdirectory clearly documented to be for UX testing rather than for
spec testing.
Minor edit to fix some small issues with the markup:
* <body> is optional
* <script> is not allowed outside of body
* stray spaces at the end of lines are bad
Test cases about the distance function of the spatial navigation
Move the files that should still exist after migration to the csswg to a
subdirectory, and delete the rest.
These should point to a different place now that spatnav lives off in
the csswg’s repository rather than in WICG.
This import merges the history of the two repositories.
This is a csswg spec now, update metadata accordingly
@frivoal frivoal self-assigned this Nov 15, 2018
@frivoal
Copy link
Collaborator Author

frivoal commented Nov 15, 2018

When merging this, WICG/spatial-navigation#136 should be merged as well.

@frivoal
Copy link
Collaborator Author

frivoal commented Nov 15, 2018

Btw, the resolution to do this is over there: https://w3.logbot.info/css/20181023#c451857

@frivoal frivoal merged commit 08bfdf6 into w3c:master Nov 16, 2018
@frivoal frivoal deleted the migrate-spatial-navigation branch November 16, 2018 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants