Re: [csswg-drafts] [css-pseudo-4] Add a highlight pseudo-element for scroll-to-text (#5522)

The CSS Working Group just discussed `[css-pseudo-4] Add a highlight pseudo-element for scroll-to-text`, and agreed to the following:

* `RESOLVED: Add target-text pseudo element`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-pseudo-4] Add a highlight pseudo-element for scroll-to-text<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/5522<br>
&lt;dael> chrishtr: Discussed other use cases. This is specifically text fragment feature. Verified exact chrome behavior. Page loads, scrolls highlights. When you click highlight dismisses. Prop is new pseudo-element to color highlight for the site<br>
&lt;florian> q+<br>
&lt;dael> chrishtr: Suggested target-text name from fantasai which is analogous to target pseudo class which lets you style anchor in URL<br>
&lt;dael> chrishtr: Same way text fragments extend fragment concept this is related so good name<br>
&lt;astearns> ack florian<br>
&lt;TabAtkins> +1 to name suggestion<br>
&lt;dael> florian: You said the highlight is shown until click. When it is dismissed is it instant?<br>
&lt;dael> chrishtr: Yes<br>
&lt;dael> florian: So no fading so do't have to worry<br>
&lt;dael> chrishtr: Yes, investigated and it's instant<br>
&lt;dael> astearns: Prop: Add a target-text pseudo element with behavior as described in the issue<br>
&lt;dael> fantasai: Wouldn't over-prescribe behavior but have it things you spec are honored and rest match UA<br>
&lt;dael> chrishtr: Sayign we don't have to restrict like we did for spelling?<br>
&lt;dael> fantasai: Example if UA has a fade-out on the color styling shouldn't make it go away, jsut fade out your color. Or some other effect make it so you're able to style css<br>
&lt;dael> fantasai: [missed]<br>
&lt;dael> florian: Valid but applies to all highlight pseudos. As a mech if UA wants to fade go ahead on any of them<br>
&lt;dael> fantasai: Like UA might fade ::selection and that's fine<br>
&lt;dael> heycam: Might be a little strange :target styles remain and it's still in the URL<br>
&lt;dael> fantasai: If UA wants to continue highlighting that's okay. Controlling that is different porject. For :target author has added but in this case browser is injecting<br>
&lt;dael> heycam: Okay, agree with that<br>
&lt;dael> astearns: Any concerns about adding target-text pseudo?<br>
&lt;dael> astearns: prop: Add target-text pseudo element<br>
&lt;dael> RESOLVED: Add target-text pseudo element<br>
</details>


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 October 2020 23:48:34 UTC