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

May I suggest updating abbr[title] to add support for Safari? #819

Open
simevidas opened this issue Jun 2, 2020 · 2 comments
Open

May I suggest updating abbr[title] to add support for Safari? #819

simevidas opened this issue Jun 2, 2020 · 2 comments

Comments

@simevidas
Copy link

normalize.css includes the following style rule:

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

Source: https://github.com/necolas/normalize.css/blob/master/normalize.css#L80-L89

This results in a solid underline in Safari:

Screen Shot 2020-06-02 at 6 29 52 PM

However, Safari does support text-decoration-style. You could add the following declaration to the above style rule to make the underline dotted in Safari as well:

text-decoration-style: dotted;

Demo: https://jsbin.com/guriqel/edit?html,css,output

Could you check if this is something that you could do?

@juytter
Copy link

juytter commented Jul 3, 2020

#738

@sean1138
Copy link

sean1138 commented Jul 9, 2020

I'm not sure that there is anything that can be done for this as far as normalize.css goes but thought it might be noteworthy.

I noticed some oddness with the dotted underline in chrome with a three letter acronym. At first i thought it was just because the content was all caps but no. Changing the font-size can change/improve the appearance of the dotted underline IMO, at around font-size:21px the dotted underline looks better in chrome here. Using 5 letters saw unexpected results in chrome here as well.
https://codepen.io/sean1138/pen/dyGeKK
2020 07 09_071853

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

No branches or pull requests

3 participants