New issue
Advanced search Search tips

Issue 596773 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Dispatch a click event to summary does not open the 'display:none' details

Reported by t...@mozilla.com, Mar 22 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0

Example URL:
https://jsfiddle.net/aethanyc/0m93g3yz/

Steps to reproduce the problem:
1. Open https://jsfiddle.net/aethanyc/0m93g3yz/

What is the expected behavior?

What went wrong?
The details is not open.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: OS X 10.11
Flash Version: Shockwave Flash 21.0 r0

This issue was raised in html spec https://github.com/whatwg/html/issues/517

I guess when a summary is in a 'display: none' subtree, it does not have a layoutObject. So it does not respond to any events. https://chromium.googlesource.com/chromium/src/+blame/132c5d0b92d80a549926b2876b597990493b21d0/third_party/WebKit/Source/core/html/HTMLSummaryElement.cpp#103

I am wondering whether this is a designed behavior? Is it possible to change?
 

Comment 1 by t...@mozilla.com, Mar 22 2016

I would expect the 'open' attribute is added to details (whether the details has 'display:none' or not) in https://jsfiddle.net/aethanyc/0m93g3yz/

Comment 2 by t...@mozilla.com, Mar 22 2016

While working on Firefox bug 1245424, I found some interesting test cases that Chrome and Firefox behave differently as described in the comment in the files. I attach them here.
https://bugzilla.mozilla.org/show_bug.cgi?id=1245424
mouse-click-change-details-to-display-none.html
1.1 KB View Download
mouse-click-move-summary-to-different-details.html
1.2 KB View Download

Comment 3 by tkent@chromium.org, Mar 23 2016

Components: -Blink Blink>HTML>Summary
Cc: tkent@chromium.org dtapu...@chromium.org rbyers@chromium.org
Labels: -OS-Mac Hotlist-Interop OS-All
Owner: hayato@chromium.org
Status: Available (was: Unconfirmed)
Would be interesting to know what other browsers do here. Firefox does indeed open the details element.
Labels: -Pri-2 Pri-3
Status: WontFix (was: Available)
According to https://github.com/whatwg/html/issues/517,
It looks we do not have a clear answer for what should be done for synthetic events.

Let me close this as WONTFIX.

Please re-open this issue if Blink has to react to synthetic events for this case.

Comment 6 by tkent@chromium.org, Jul 12 2016

Components: -Blink>HTML>Summary Blink>HTML>Details

Sign in to add a comment