…in reply to @404boyfriend
      made the mistake of designing a half-star rating component around an SVG <linearGradient> mask with space between stars — but it means that something like 3.5/5, or 70%, doesn't map perfectly to masking 70% of the width of the whole shape...
      oh my god twitter doesn’t include alt text from images in their API
    …in reply to @404boyfriend
    so I just spent this evening debugging with my sister the math required to procedurally account for the gaps given only the ratio of 1 star to 5 stars + 4 gaps lol. 😵‍💫
        …in reply to @404boyfriend
        something else: for each page, the theme can take anywhere from 1 to n colors, and should create a smooth SVG gradient for the stars with those colors. here's how i'm handling that with a <linearGradient> primitive (using server-side vue for template interpolation in an 11ty app)
        oh my god twitter doesn’t include alt text from images in their API