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

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