Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split out link text-decoration properties for Safari compatibility #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acusti
Copy link

@acusti acusti commented Dec 5, 2024

Safari doesn’t support specifying text-decoration-thickness in the text-decoration shorthand. Beyond that, Safari also seems to have trouble handling CSS custom properties within the shorthand syntax. So I just split out the individual text-decoration-color and text-decoration-thickness properties into their own declarations and custom properties and defined them as needed.

To illustrate the issue, here’s how the Setup part of the A Builder’s Tour of Automerge looks on desktop Safari:

image

(initially i was just confused why the Info box, for example, didn’t link to the repo where i could find the code mentioned there)

@acusti acusti changed the title Split out link underline thickness for Safari compatibility Split out link text-decoration properties for Safari compatibility Dec 5, 2024
Safari doesn’t support specifying text-decoration-thickness in the text-decoration shorthand: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration#browser_compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant