Skip to content

Deprecate reference combinators #303

Closed

Description

@nex3

These should be on our radar, although we may want to wait until they're implemented somewhere before we support them. See Selectors Level 4.

Here's a page tracking browser support.

Tasks:

  • Deprecate existing behavior in stable.
  • Remove behavior from master.

Activity

  1. jleclanche commented on Mar 16, 2012

    @jleclanche

    I don't think this is here to stay; as the issue says it's a lot easier to implement as a functional pseudoclass. The syntax is really ugly, too.

  2. sturobson commented on May 26, 2013

    @sturobson

    quickly looking in Chrome (latest and Canary), Firefox (latest and Aurora) and Opera (latest(presto)). There seems to be varied support for level 4 selectors now. I've found this test (wrongly named as CSS4) here -

    http://css4-selectors.com/browser-selector-test/

    Chrome -

    current -

    Indeterminate-value pseudo-class (E:indeterminate)
    Default option pseudo-class (E:default)
    Validity pseudo-class (E:in-range)
    Validity pseudo-class (E:out-of-range)
    Optionality pseudo-class (E:required)
    Optionality pseudo-class (E:optional)
    Mutability pseudo-class (E:read-only)
    Mutability pseudo-class (E:read-write)

    canary -

    Indeterminate-value pseudo-class (E:indeterminate)
    Default option pseudo-class (E:default)
    Validity pseudo-class (E:in-range)
    Validity pseudo-class (E:out-of-range)
    Optionality pseudo-class (E:required)
    Optionality pseudo-class (E:optional)
    Mutability pseudo-class (E:read-only)
    Mutability pseudo-class (E:read-write)

    Firefox -

    current -

    Indeterminate-value pseudo-class (E:indeterminate)
    Default option pseudo-class (E:default)
    Validity pseudo-class (E:in-range)
    Validity pseudo-class (E:out-of-range)
    Optionality pseudo-class (E:required)
    Optionality pseudo-class (E:optional)

    aurora -

    Indeterminate-value pseudo-class (E:indeterminate)
    Default option pseudo-class (E:default)
    Validity pseudo-class (E:in-range)
    Validity pseudo-class (E:out-of-range)
    Optionality pseudo-class (E:required)
    Optionality pseudo-class (E:optional)

    Opera -

    current -

    Indeterminate-value pseudo-class (E:indeterminate)
    Default option pseudo-class (E:default)
    Validity pseudo-class (E:in-range)
    Validity pseudo-class (E:out-of-range)
    Optionality pseudo-class (E:required)
    Optionality pseudo-class (E:optional)
    Mutability pseudo-class (E:read-only)
    Mutability pseudo-class (E:read-write)

    Total list of level 4 selectors tested -

    Negation pseudo-class (E:not(s1, s2))
    Matches-any pseudo-class (E:matches(s1, s2))
    Local link pseudo-class (E:local-link)
    Time-dimensional pseudo-class (E:current)
    Indeterminate-value pseudo-class (E:indeterminate)
    Default option pseudo-class (E:default)
    Validity pseudo-class (E:in-range)
    Validity pseudo-class (E:out-of-range)
    Optionality pseudo-class (E:required)
    Optionality pseudo-class (E:optional)
    Mutability pseudo-class (E:read-only)
    Mutability pseudo-class (E:read-write)
    Structural pseudo-class (E:nth-match(n of selector))
    Grid-Structural pseudo-class (E:column(selector))
    Grid-Structural pseudo-class (E:nth-column(n))
    Grid-Structural pseudo-class (E:nth-last-column(n))
    Attribute case-sensitivity (E[foo='bar' i])
    Reference combination (E /foo/ F)
    Subject of a selector with Child combinator (E! > F)
    Hyperlink pseudo-class (E:any-link)
    Dir pseudo-class (E:dir(*))

    Just thought I'd do a little testing to see what browsers are supporting what and where to keep the issue up to date a little.

    (up to date browser == latest download as of time of posting this)

  3. nex3 commented on Feb 17, 2017

    @nex3
    ContributorAuthor

    Sass has supported this since afdf0e8, but it's since been removed from the specification so we should deprecate it.

  4. changed the title [-]Attribute reference combinators[/-] [+]Deprecate reference combinators[/+] on Feb 17, 2017
  5. added a commit that references this issue on Feb 17, 2017
  6. modified the milestone: on Jun 15, 2017
  7. added 3 commits that reference this issue on Jun 16, 2017
    a41d2a2
    738c0da
    e97ba4c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions