Repository navigation
Commit c5f454b
fix(lint): the negative-z hiding is conditional on an opaque root background
Reviewer's edge case, confirmed false rather than merely untested.
The previous wording asserted the element "paints beneath an opaque ancestor
background". Measured: with a TRANSPARENT composition root and nothing opaque
above it, the same `z-index: -1` band renders at FULL coverage. So for that
shape the message stated the opposite of what happens.
The mechanism is now stated as fact and the hiding as conditional on what is
actually there:
paints the element behind its nearest stacking context's own content.
With no stacking-context ancestor that context is the composition root
itself, so an opaque background there hides it entirely: in the DOM, laid
out, and absent from the picture. A transparent root leaves it visible.
Detection is untouched. Three assertions pin the wording, including one that
the transparent-root clause is present, so the narrower claim cannot drift
back.
Also fixes a dropped space in the previous revision's string concatenation
("entirelyand"), which is mine and was introduced in this PR.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>1 parent a366c3b commit c5f454b
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2220 | 2220 | | |
2221 | 2221 | | |
2222 | 2222 | | |
2223 | | - | |
2224 | | - | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2225 | 2230 | | |
2226 | 2231 | | |
2227 | 2232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
0 commit comments