CSS selector with [tabindex='-1'] predicate works only one way (not refreshed if no longer applies when tabIndex changes programmatically)

Not reproducible Issue #23493683

Details

Author
Matthias T.
Created
Sep 18, 2019
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
18.18362
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

I’m having a CSS selector like
div[tabIndex=’-1’] { font-weight: bold; }

When switching elements’ tabIndex to -1 the style applies and I see bold text.
When switching back tabIndex to 0 the element is not refreshed (only when interacting with the page), so that the -1 style is still visible, although it does not apply any more.

Attachments

0 attachments

    Comments and activity

    • No, forget about this issue, I can no longer reproduce it and am not sure under which extra conditions it was caused (but I did have a different behaviour in different browsers).
      There seems to be no button to close or delete an issue here?

    • RE: The issue is caused when NOT interacting with the mouse over the affected area (no no refreshes due to hovering). When switching the tabIndex the CSS does not get reapplied!

    • Microsoft Edge Team

      Changed Assigned To to “Zachariah L.”

    • Hi Matthias!

      Thank you for contacting us about this issue! I am glad to hear you resolved the problem. In order for me to identify this as a bug, I need to be able to reproduce the issue locally. Do you have a link to a page where I can reproduce it? Alternatively a simplified reproduction on a site such as https://jsfiddle.net/ works as well.

      Thanks,

      Zach

    • Hi Zach,
      I tried to make a Fiddle, but it does not want to reproduce.
      Right now I can’t even reproduce it on the page where I originally had the problem.
      There seems to be some kind of interaction involved with events (not simply mouse).
      With simple timer-based switching everything works as it should.
      I will post something as soon as I find the problem again. Sorry, you can ignore this ticket for now or even close it (will open a new one on demand).

    • Hi Matthias!

      Thanks for updating me! I will leave this ticket open for about a week and if I haven’t heard from you then I will close it.

      Have a great day!

      Zach

    • Hi Matthias!

      For now, I will resolve this issue as "Not Reproducible". If this issue resurfaces then please feel free to reopen this issue.

      Thanks,

      Zach

    • Microsoft Edge Team

      Changed Status to “Not reproducible”

    You need to sign in to your Microsoft account to add a comment.

    Sign in