Re: [fxtf-drafts] Clip backdrop root (input) image to border box of element (#342)

@mstange, thanks for the comments. I put the language back to just "blur" for the edgemode comment.

I've never quite been able to wrap my head around a drop-shadow backdrop-filter, for a couple reasons. First, it is offset from the original, and the backdrop-filter effect is clipped at the border box. Second, the offset/blurred drop shadow is already specified to be composited *below* the image. So if you're applying a backdrop-filtered drop-shadow, where does the drop shadow composite, exactly? I actually thought about explicitly removing drop-shadow from the spec for backdrop-filter, but I figured someone would come up with a cool use.

Finally, regarding the clipping of the input rect: I did mention this problem on the crbug.com/497522 discussion. As soon as one pixel of the new color passes under the border rect, it can "suddenly" affect a large portion of the filtered output. There's no perfect answer to this problem - there are weird behaviors either way. It seems like the developer feedback is that they would prefer the new behavior - clipping the input. It also has the added benefit of being more performant and being closer to Webkit. I'm not sure how their implementation (which does appear to clip the input to the border box, or something close) works better in this regard - let me know if you know!

-- 
GitHub Notification of comment by mfreed7
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/pull/342#issuecomment-504556016 using your GitHub account

Received on Friday, 21 June 2019 20:04:26 UTC