Re: [csswg-drafts] [css-pseudo-4] Original color of highlight pseudo inside ::first-letter/::first-line (#4625)

The CSS Working Group just discussed `[css-pseudo-4] Original color of highlight pseudo inside ::first-letter/::first-line`, and agreed to the following:

* `RESOLVED: Whatever highlight being applied uses colors from before even if came from pseudo element like ::first-letter/::first-line`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-pseudo-4] Original color of highlight pseudo inside ::first-letter/::first-line<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/4625<br>
&lt;dael> fantasai: Currently spec if author spec background color and no color we use color of originating element<br>
&lt;dael> fantasai: With ::first-letter/::first-line it will cause it to change color b/c look at paragraph. Would be weird for spelling or grammar error.<br>
&lt;dael> fantasai: Do we make it look up ::first-letter/::first-line color or is that difficult?<br>
&lt;dael> TabAtkins: While I'm inclined to think it's complicated but heycam thought it was fine so sure. I think it's reasonable<br>
&lt;dael> astearns: Other impl feedback?<br>
&lt;dael> astearns: Prop?<br>
&lt;dael> fantasai: Use the color of the text prior to applying the highlight<br>
&lt;dael> fantasai: Whatever highlight being applied uses colors from before even if came from pseudo element like ::first-letter/::first-line<br>
&lt;dael> astearns: Any other pseudo elements effected?<br>
&lt;dael> fantasai: Not sure, possible ::before or ::after<br>
&lt;dael> fantasai: POint is make it clear if there's a pseudo element changing the color we use that color not the document element<br>
&lt;dael> astearns: Objections?<br>
&lt;dael> RESOLVED: Whatever highlight being applied uses colors from before even if came from pseudo element like ::first-letter/::first-line<br>
&lt;dael> fantasai: One note is currentColor keyword we'll have to make it resolve to a value for purpose of gCS. Will need to represent multiple colors<br>
&lt;dael> florian: Why?<br>
&lt;dael> fantasai: If you have a selection...we attach selections to an element not  ::first-letter/::first-line. Could change the model<br>
&lt;dael> florian: I see<br>
&lt;dael> fantasai: That's going to be interesting<br>
&lt;dael> florian: Yeah. For ::before/::after it's not a problem, but weird for ::first-letter/::first-line<br>
&lt;dael> fantasai: I'll try and spec it out. It will be complicated<br>
&lt;dael> tantek: Impact on impl with change?<br>
&lt;dael> fantasai: No one impl this right now. Would all have to change<br>
&lt;dael> chrishtr: Backwards compat?<br>
&lt;dael> fantasai: No one does this. It's difficult to impl I think. That's why I raised it<br>
&lt;dael> chrishtr: Good to have things not difficult to impl<br>
&lt;dael> fantasai: But good to have good behavior too. I can spec it<br>
&lt;dael> TabAtkins: I had same feeling as you but heycam thought it most reasonable to do. Since he doesn't think impl overrides correct behavior I decided to trust him<br>
&lt;dael> smfr: Is it to accept heycam proposal?<br>
&lt;dael> TabAtkins: Accept fantasai proposal<br>
&lt;dael> astearns: heycam was agreeing this is righ behavior to spec. We'll try and spec and get impl experience to say if it's reasonable. We can back out if too complicated to impl<br>
&lt;dael> tantek: I was revieing GH and saw fantasai question what to do. I didn't see the proposal.<br>
&lt;dael> fantasai: I need to write a proposal. Not worth it if no one wants to do it<br>
&lt;dael> tantek: Looks like heycam had a proposal<br>
&lt;dael> fantasai: There's two possibilities at a high level and heycam said this one<br>
&lt;dael> tantek: That's what we resolved on?<br>
&lt;dael> fantasai: Yes<br>
&lt;dael> myles: Why hard to impl?<br>
&lt;dael> fantasai: Highlight is attached to element in dob not firstline. So you can have a highlight span and have to look up different colors depending on if you're first line even if same element. You have to paint with different colors and have currentColor with presumably multiple colors.<br>
&lt;dael> fantasai: I don't know how machinery will work; needs substantial changes to make it work. We'll have to see what happens and how impl shake out<br>
&lt;bradk> s/dob/doc<br>
&lt;dael> myles: My intuition is this wouldn't be difficult. In MacOS we draw highlight per element so it's just an if for us. iOS is different. I don't think would be hard<br>
&lt;fantasai> s/needs substantial/per-element ::selection needs substantial/<br>
&lt;dael> fantasai: Okay<br>
&lt;myles> s/wouldn't be difficult/wouldn't be difficult to implement/<br>
&lt;dael> florian: Clarification we resolved on high level principle and fantasai you're going to worry about how to do currentColor later.<br>
&lt;dael> fantasai: Yep<br>
&lt;dael> astearns: Next step if fantasai spec this out. Anyone with enough concern that it's a waste of time for her to work on this?<br>
&lt;dael> astearns: THen we'll let resolution stand<br>
</details>


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

Received on Wednesday, 15 January 2020 17:22:25 UTC