I'm working on a content curation website. One of the things you can curate is a widget with some text and no character limit. The widget (and its preview) are rendered by simplying setting overflow: hidden
The administrator is currently expected to preview the widget and check that it looks "alright" before publishing.
However, if you're using a screen reader, the screen reader reads out even the hidden text, so a visually-impaired administrator would have no idea that the content will overflow for a sighted user.
One solution is to enforce a character limit, which we'd originally avoided because character limits aren't great for non-monospaced fonts.
However, before resorting to that, I was wondering if it's possible to hide the overflowed content from a screen reader?