W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2017

Re: [csswg-drafts] [css-color] currentColor when fragments have differents colors

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Fri, 09 Jun 2017 06:56:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-307311357-1496991408-sysbot+gh@w3.org>
As an author, I would expect these fragments to have different `currentColor` values, so the colors of the font and decorations/effects of each fragment always meet (according to the principle of least surprise). The same behavior I'd expect from the "text runs" with differently styled parts that `display:contents` may result in. So I'd expect both 1st and 3rd lines of the example to be all green, and the 2nd line all red.

This would require implementing all the effects for inline elements on a per-fragment basis, but it seems the most reasonable approach for it anyway (although I admit that there might be some performance and compatibility considerations).

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1510#issuecomment-307311357 using your GitHub account
Received on Friday, 9 June 2017 06:56:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:14 UTC