Re: [fxtf-drafts] [filter-effects-1] Scale image before or after filter() is applied? (#399)

> if an image is tiled, you use the "wraparound" bleed mode.

Note that [the current spec](https://drafts.fxtf.org/filter-effects/#FilterCSSImageValue) is to use the “duplicate" edge mode for blurs inside `filter()`, which provides acceptable results for both tiled and untiled images (you don't get semi-transparent edges on an opaque image, but you also don't get blurring across the edges).

(Sorry for confusing matters by not digging up that spec before commenting.)

Adding a context-based rule to switch to "wrap" mode for tiled images would probably give better results for fully tiled textures, but that doesn't address background images that repeat in one direction only, or the more complicated tiling corner effects in border images. So I think that if we're going to break the encapsulation in that way, might as well make it smart enough to blur after tiling / composing the full border image.  Browsers could still optimize and blur before tiling if the calculate that it's “safe” based on the blur radius.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/399#issuecomment-628956462 using your GitHub account

Received on Friday, 15 May 2020 00:30:39 UTC