New issue
Advanced search Search tips

Issue 764270 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 12
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Rules for :focus-within CSS selector doesn't apply if focus is applied with the Element state tool

Reported by trondkje...@appear.in, Sep 12 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.71 Safari/537.36

Steps to reproduce the problem:
1. Create an <input> element inside a wrapper <div>
2. Add a div:focus-within CSS-rule
3. Use Dev Tools to manually set focus to the input element

What is the expected behavior?
The :focus-within CSS rule should apply

What went wrong?
The :focus-within CSS rule doesn't apply.

Did this work before? No 

Chrome version: 61.0.3163.71  Channel: n/a
OS Version: OS X 10.12.6
Flash Version: 

I've created this to test out the bug:

http://jsbin.com/yasitavabe/1/edit?html,css,output
 
Labels: Needs-Triage-M61
Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)
Thanks for the bug report.

@einbinder - looks like Chrome just implemented ":focus-within" in M60: https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-within
Labels: OS-Linux OS-Windows
Cc: kkaluri@chromium.org
Labels: TE-Verified-64.0.3270.0 TE-Verified-M64
Verified this issue on Windows 10, Ubuntu 14.04 & Mac 10.12.6 with chrome #64.0.3270.0 and observed the support for :focus-within css rule in dev tools. Hence adding TE-Verified labels

Attaching the screen-cast for reference.

764270.png
332 KB View Download
Status: Fixed (was: Assigned)

Sign in to add a comment