[csswg-drafts] [css-text-decor-4] Composition of inset shadows (#7251)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-decor-4] Composition of inset shadows ==
Wrt stacking order of inset shadows, @smfr wrote:
> Maybe the inset shadow never overlaps the stroke, but conceptually I'd expect the inset shadow to render below the text stroke (but above the fill).

This brings up a couple questions:
* The obvious: What is the stacking order of inset shadows wrt stroke?
* Less obvious: Are text decorations composited with their text before being shadowed?

Here's a [fun test case](https://www.software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cp%20style%3D%22text-shadow%3A%20%235555%2020px%2020px%3B%20font-weight%3A%20bold%3B%20font-size%3A%2020px%3B%20text-decoration%3A%20line-through%3B%20text-decoration-thickness%3A%2010px%22%3ETest%20This). From an authoring perspective, I think I'd expect the shadow to have a consistent color throughout...

But if we composit the text and the decorations together for shadowing, we can't say that the inset shadows are between the stroke and fill since text and decorations are stroked independently.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7251 using your GitHub account


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

Received on Wednesday, 4 May 2022 18:58:38 UTC