Re: [csswg-drafts] [selectors4] :target-within?

The Working Group just discussed `Target within`, and agreed to the following resolutions:

* `RESOLVED: Add target within to selectors 4.`

<details><summary>The full IRC log of that discussion</summary>
&lt;eae> Topic: Target within<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/457<br>
&lt;bradk_> i think "filter()" vs. "filter:" would lead to confusion<br>
&lt;eae> leaverou: This is probably best explained with an example. Image a photo gallery, clicking a phot enlarges it, often done with pseduo and having an anchor with a hash url. Every time you click an image it becomes the target.<br>
&lt;eae> leaverou: You also want to apply a style to the entire gallery without a selection, also done with target.<br>
&lt;eae> leaverou: No way to target the state where there is no hash.<br>
&lt;eae> leaverou: Suggested this on github but got no comments. Think it is useful and not terrible difficult to implement.<br>
&lt;eae> TabAtkins: I see the use case and see similar uses, I'm supportive of  the use case.<br>
&lt;eae> ???: What if you have a photo gallery that also has some sections that aren't images that are stil targetable by a hash?<br>
&lt;eae> leaverou: Another use case for target-within as it allows both for the selected image and not to be supported.<br>
&lt;dbaron> s/???/dholbert/<br>
&lt;tantek> +1<br>
&lt;eae> Rossen: Any objections to target within?<br>
&lt;eae> RESOLVED: Add target within to selectors 4.<br>
&lt;leaverou> s/as it allows both for the selected image and not to be supported./as it allows you to use it on the image, which will apply both when the image is target or when it contains a target/<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/457#issuecomment-342646705 using your GitHub account

Received on Tuesday, 7 November 2017 22:34:58 UTC