Skip to content

[selectors-4] Add functional notation to :local-link selector? :local-link(n)? #2814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jonjohnjohnson opened this issue Jun 25, 2018 · 4 comments
Labels
selectors-4 Current Work

Comments

@jonjohnjohnson
Copy link

jonjohnjohnson commented Jun 25, 2018

https://drafts.csswg.org/selectors-4/#the-current-pseudo

See -> https://wiki.csswg.org/ideas/current-url-selector

The current link pseudo-class selector would have the following pattern: E:current(n) {}

Please read the wiki page linked above, I won't rehash all it has to say here. I am wondering if this was ever shot down and if not, what folks think about it now? Because I cannot help but imagine it as extremely useful, especially keeping in mind the :has() relational pseudo-class allowing a "current" anchors parent element to also be selected.

The key here being, the functional notation as opposed to the the current language of the spec.

Edited - :local-link is the selector in the spec

@Loirooriol
Copy link
Contributor

Loirooriol commented Jun 28, 2018

:local-link(n)?

@jonjohnjohnson
Copy link
Author

@Loirooriol oh I forgot seeing it had a new name a while back, but still missing the functional notation for directory depth, which would enable particular breadcrumb and local/external stylings? Maybe I should add "functional notation" to the title?

@jonjohnjohnson jonjohnjohnson changed the title [selectors-4] Pick up the "current url" selector idea? [selectors-4] Add functional notation to :local-link selector? :local-link(n)? Jun 28, 2018
@fantasai
Copy link
Collaborator

@jonjohnjohnson This was already proposed, see https://www.w3.org/TR/2011/WD-selectors4-20110929/#local-pseudo It was resolved to simplify the feature as in the current ED.

@fantasai fantasai added the selectors-4 Current Work label Jul 24, 2018
@fantasai
Copy link
Collaborator

Sorry, it was resolved to drop it, and then we added the simplified version back. See #2010 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
selectors-4 Current Work
Projects
None yet
Development

No branches or pull requests

3 participants