Coder Social home page Coder Social logo

Issues with :focus-within about nwsapi HOT 4 CLOSED

jessarcher avatar jessarcher commented on July 28, 2024
Issues with :focus-within

from nwsapi.

Comments (4)

dperini avatar dperini commented on July 28, 2024 4

@jessarcher @samschurter
the commit 2aa66fc should have fixed that, I followed @jessarcher suggestion.
I have been working on the :focus-visible pseudo-class collecting the various cases but since the resolution of that is non normative and open to interpretation I will need to discuss this and ensure nothing fails and it doesn't introduce new regressions. What do you think ? Should I try include that ':focus-visible' too ?

from nwsapi.

dperini avatar dperini commented on July 28, 2024

@jessarcher
thank you for the heads-up on this.
I have also been doing some experiment with a generic solution to the problem of partially duplicate names of pseudo-classes.
In your case, you could try one of these:

':focus-within'.match(/(?:^:(?:hover|active|focus|focus-within)(?:\\b|$))(.*)/i)
':focus-within'.match(/(?:^:(?:hover|active|focus|focus-within)(?::|\\b|$))(.*)/i)

and check if the outcome satisfy your current needs.
Then check that the RegExp still matches longer selectors with combined pseudo-classes.

from nwsapi.

samschurter avatar samschurter commented on July 28, 2024

I've also run into issues with :focus-within and created a reproduction based on a different issue:
https://codepen.io/samschurter/pen/GRXyEMe?editors=101

Is SyntaxError: ':focus-within' is not a valid selector the same error that caused this issue, or is this a different bug?

from nwsapi.

deizianens avatar deizianens commented on July 28, 2024

I'm having same issues but with :focus-visible

from nwsapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.