Skip to content

bug: Adds whitespace to <wbr> #79

@TheJaredWilcurt

Description

@TheJaredWilcurt

When using <wbr /> to indicate a potential line break location for text flow, Work Sans treats this zero-width element as though it has width.

Reproduction:

You can click on the middle option to toggle whether the <wbr> is applied. When <wbr> has display: none it no longer functions as an indication for line break opportunities.

This issue does not occur in other fonts, from my testing. This can cause visual noise when toggling strings of text from having <wbr> to not having them.

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