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

open-props/normalize renders text-underline-offset differently across browsers #245

Closed
cdvillard opened this issue Jul 6, 2022 · 5 comments · Fixed by #246
Closed

open-props/normalize renders text-underline-offset differently across browsers #245

cdvillard opened this issue Jul 6, 2022 · 5 comments · Fixed by #246

Comments

@cdvillard
Copy link

Nothing wrong with a normalize that doesn't 100% perfectly normalize across all browsers, but I did notice that across Firefox and Chrome that text-underline-offset was rendering differently.

image

Both inspectors are analyzing anchor elements inheriting the same text-underline-offset, but the different shows in how Chrome renders the underline significantly lower than Firefox. Is this because of the differences between the render engines? Is this something we can smooth out somehow in stylesheets?

@argyleink
Copy link
Owner

that's def poopy that 1px is causing so much issue here lol. we could try and smooth things out in our stylesheets, did you try? i'm feeling inclined to leave it.. but i'd be open to alternative value propositions if they render more predictably.

@cdvillard
Copy link
Author

cdvillard commented Jul 7, 2022 via email

@argyleink
Copy link
Owner

no worries, this is totally "can't unsee". i'm trying some stuff in browser right now:

Firefox:
Screen Shot 2022-07-06 at 10 19 25 PM

Chrome:
Screen Shot 2022-07-06 at 10 19 29 PM

Safari:
Screen Shot 2022-07-06 at 10 23 20 PM

default / user agent screenshots
open props normalized

Firefox:
(yeah, it's like it needs to be 2px for Firefox, to actually be normalized)
Screen Shot 2022-07-06 at 10 19 48 PM

Chrome:
Screen Shot 2022-07-06 at 10 19 38 PM

Safari:
(looks the same, 1px is the default)
Screen Shot 2022-07-06 at 10 23 20 PM

proposed fix: adjust firefox to `2px`

Firefox:
Screen Shot 2022-07-06 at 10 28 40 PM

Chrome:
Screen Shot 2022-07-06 at 10 19 38 PM

Safari:
Screen Shot 2022-07-06 at 10 23 20 PM

argyleink added a commit that referenced this issue Jul 7, 2022
@argyleink argyleink linked a pull request Jul 7, 2022 that will close this issue
@argyleink
Copy link
Owner

checkout https://open-props--pr246-245-open-propsnormal-4mllu3ov.web.app/, it's got an updated value for firefox. thoughts?

@cdvillard
Copy link
Author

Works for me. Pretty simple solution, all things considered.

argyleink added a commit that referenced this issue Jul 11, 2022
* fixes #245

* not custom media ready, hand write

* typo fix for supports query strategy
kelvindecosta pushed a commit to kelvindecosta/open-props that referenced this issue Nov 16, 2022
* fixes argyleink#245

* not custom media ready, hand write

* typo fix for supports query strategy
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 a pull request may close this issue.

2 participants