Skip to content

Accents on Safari #520

Closed
Closed

Description

@tmke8

Here's a plan to fix them all:

  • \grave, \breve, \acute: use the combining versions and set stretchy="true"
  • \dot, \ddot, \dddot, \ddddot: set stretchy="true"
  • \bar: use low line (yes, it looks a bit too long in Libertinus, but I think we can live with that)
  • \hat, \check, \vec: lower the glyph in the font file so that it fits

This CSS kind of solves it, but it's very hacky:

            mover[accent="true" i] > mo:nth-child(2)[stretchy="false" i] {
                margin-bottom: -1ex;
            }

Activity

  1. added
    CSS
    on Sep 29, 2025
  2. tmke8 commented on Oct 5, 2025

    @tmke8
    OwnerAuthor

    Here is what Temml does:

    @supports (-webkit-backdrop-filter: blur(1px)) {
      /* WebKit vertical correction on accents */
      .wbk-acc {
        /* lower by x-height distance */
        transform: translate(0em, 0.431em);
      }
    }

    Though why don't they just use 1ex, which should be the x-height distance?

  3. tmke8 commented on Oct 7, 2025

    @tmke8
    OwnerAuthor

    The problem with this kind of approach is that it will lead to incorrect results if Safari ever fixes their implementation.

  4. added a commit that references this issue on Mar 15, 2026
    04796d2
  5. reopened this on Mar 15, 2026
  6. tmke8 commented on Mar 15, 2026

    @tmke8
    OwnerAuthor

    Not quite solved after all: #883

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CSS

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions