[csswg-drafts] Anchors opening <details>

bameyrick has just created a new issue for https://github.com/w3c/csswg-drafts:

== Anchors opening <details> ==
Might be linking the wrong spec but I think it is this: https://www.w3.org/TR/html51/interactive-elements.html#the-details-element

I have noticed that if an anchor is placed within a closed `<details>` element and a user clicks on a link to that anchor, nothing happens. This might not be the intended use of the details element, but if this was a valid use case it would be good that when the user navigates to an anchor within a details element, that details element is opened.

Another potential case would be if the id to anchor to was on the details element itself and the user navigated to it then this would open the details element too (although being able to style details to be open as discussed in #2084 would potentially solve this).

An example use case for this functionality would be a feedback link in a header at the top of the page that anchors to a details element in the footer containing the feedback form, or another would be a link referencing an answer within a FAQ section using `<details>` and `<summary>` elements for the questions and answers.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3330 using your GitHub account

Received on Friday, 16 November 2018 09:30:00 UTC