- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 10 Jan 2019 01:03:53 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Color of text / decorations`. <details><summary>The full IRC log of that discussion</summary> <dael> Topic: Color of text / decorations<br> <dael> github: https://github.com/w3c/csswg-drafts/issues/2850<br> <dael> fantasai: As I was working on the model for this I figured it would be useful to have this defined<br> <dael> fantasai: I wanted to double check that hte WG thinks it's fine<br> <dael> AmeliaBR: A little concerned from agenda summary, but issue seems that it's coming out of cascade where ::Selection pseudo element gets broken to sep pieces for selection inside each element so selection inside an element with different color will have different currentColor. Is that correct?<br> <dael> fantasai: It would resolve to a single color, but just be a keyword. If your value is currentColor you don't paint over text decorations with another color.<br> <dael> AmeliaBR: Makes sense. Works if you think of it as many pseudo elements in sequence. Wording in agenda makes it sound that you can't set current color in pseudo selection itself.<br> <dael> fantasai: This is jsut for color property itself. currentColor anywhere else behaves as expected<br> <dael> AmeliaBR: So it goes with this works by inheritence.<br> <dael> fantasai: I should double check spec, but that's what it should say<br> <dael> astearns: Other comments?<br> <dael> daniel: I came in mid-way, but this was my issue. What was that about current color and inheritence?<br> <dael> fantasai: If you look at issue example there is text that's black and underline black and there's a red word in there. What I'm proposing is to clarify the behavior you expect that the red will continue to be red if ::selection isn't given a color.<br> <AmeliaBR> ::selection{ background: yellow} is treated as ::selection{background: yellow; color: currentColor}<br> <dael> fantasai: As I clarified it seemed ti would be straightword to have a keyword to refer to this which is currentColor. So I wanted to tie it explicitly rather then if you just don't have a value. That way they can spec the behavior<br> <dael> daniel: If you leave out the value...in this example selection leaves out color so it inherits from spelling error pseudo element<br> <dael> fantasai: Way cascading is spec the ::selection inherits from the parent ::selection not directly from the originating element or another pseudo element<br> <dael> daniel: with you on that. If everyone agrees result should be bottom example it seems like you have to inherit from pseudo elements until you fall back to originating<br> <dael> fantasai: Could say inherits from pseudo element, but could be confusing if you have overlapping pseudo elements that don't forma tree<br> <dael> daniel: Do you have a solution that achieves expected result?<br> <astearns> https://drafts.csswg.org/css-pseudo-4/#highlight-painting<br> <dael> fantasai: If you read current ED...let me pull<br> <fantasai> https://drafts.csswg.org/css-pseudo-4/#highlight-painting<br> <fantasai> the topmost active highlight overlay redraws that text (and its decorations) over the highlight overlay backgrounds (and outlines, if any) using its own color, with currentColor representing the color of the next highlight pseudo-element layer below, falling back finally to that of the originating element (the colors that would otherwise be used<br> <dael> florian: You're solving by having currentColor behave normally but at used time fetch the correct color<br> <dael> fantasai: Second paragraph<br> <dael> daniel: As long as the resolution gets the expected result I'll be happy<br> <dael> fantasai: That's the intention<br> <dael> daniel: I'm fine with that. If I have an issue witht he wording I'll file a spec issue.<br> <dael> fantasai: I would really like review on this section<br> <dael> daniel: I'm happy to do it offline. I'll send you an email and then you can tell me if we need to have a followup<br> <dael> astearns: It would be good to have this convo in the issue<br> <dael> daniel: I'll keep the issue updated<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2850#issuecomment-452931282 using your GitHub account
Received on Thursday, 10 January 2019 01:03:55 UTC