GoogleChromeLabs / houdini.how

A community-driven gathering place for CSS Houdini worklets and resources.
https://houdini.how
Apache License 2.0
152 stars 39 forks source link

Update to css-paint-polyfill@3.2.0 to fix border-image in Safari/Firefox #118

Closed developit closed 3 years ago

developit commented 3 years ago

The only way to fix geometry calculations for border-image in Safari was to disable hidpi/retina painting, since it seems Webkit does not respect DPR when calculating the effective image slice for -webkit-canvas-derived border images. The polyfill injects image-rendering:optimizeSpeed to make things look a little less blurry than the default value in Safari.

Note: there is a separate PR to css-houdini-lines to fix the color issue, it wasn't a bug in the polyfill.