rgadellaa’s avatarrgadellaa’s Twitter Archive—№ 10,259

  1. Quick CSS tip: If you have an image that's composited on a separate layer (because you used transform, for example), you may get a light border on the image [1]. The solution: backface-visibility: hidden; [1] This happens in Chrome, haven't tested Firefox and Safari yet.
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @RGadellaa
      I think it's a combination of: 1) the image not being rendered 1:1, so for example I have a 960px image that is rendered at 640px. 2) transform or other css property causing the image to be get a separate gpu layer
      1. …in reply to @RGadellaa
        Example: (Input image = 960px wide) css img { width: 640px; height: auto; aspect-ratio: 16/9; object-fit: cover; transform: 0 16px; backface-visibility: hidden; }