Skip to content

replace scale-to-fit-x with native css text-shrink when available #234

Description

@jsnkuhn

We have a custom attr for scaling text down to fit fixed sizes boxes:

https://github.com/Rando-Mania/RandoTracker/blob/master/LAYOUT_DOCUMENTATION_V2.md#scale-to-fit-x

This has always been a pain. Trouble shooting when something goes wrong isn't always straight forward. Folks have also asked for a fit Y version but this will just make things more complicated.

Enter Chrome prototyping native CSS fit-width properties in Canary 145. It looks promising but is very early right now. This will be the way to go with this once supported by enough browsers and enough versions of OBS's browser source:

https://github.com/explainers-by-googlers/css-fit-text/blob/main/README.md

https://nerdy.dev/css-text-grow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions