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

Input shadows are offset incorrectly in Firefox #462

Open
FWDekker opened this issue Feb 19, 2024 · 2 comments
Open

Input shadows are offset incorrectly in Firefox #462

FWDekker opened this issue Feb 19, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@FWDekker
Copy link
Contributor

FWDekker commented Feb 19, 2024

First of all, thank you for releasing v2! I had been looking forward to it for some time now, and it looks great :)

Issue Description

In Firefox, the box shadow of a focused input element is offset slightly incorrectly, resulting in a sort of "double vision" effect.

This issue occurs in Firefox, but not in Chromium. See the comparison below. I focused especially on the corners where the issue is most apparent. Both screenshots were made by going to pico's own Forms overview documentation page. Both screenshots were made in a fresh browser profile without add-ons.

Firefox 122.0.1 Chromium 121.0.6167.160
The input element's regular border and box shadow are offset slightly differently in the corners of the input element, resulting in a double vision effect. The input element's regular border and box shadow overlap exactly in all places.

Expected Behavior

I expect both browsers to behave as in Chromium.

Reproduction URL

https://picocss.com/docs/forms

Environment

OS Linux 6.6.13, Debian Testing, KDE, X
Browser See above
picocss 2.0.3
@lucaslarroche
Copy link
Member

I agree. Not pretty.
I don't see this problem with Firefox 122 on macOS.
I don't have much idea how to fix it.

@lucaslarroche lucaslarroche added the help wanted Extra attention is needed label Mar 3, 2024
@Brian-Pob
Copy link

Brian-Pob commented Mar 3, 2024

I was able to reproduce the bug Firefox on Linux (Arch Linux with GNOME 45) and Windows 11.

Tested on Chromium browsers as well with no problems.

Edit: I did a tiny bit of digging and it seems like this is a known bug with no fix or workaround as of yet. https://bugzilla.mozilla.org/show_bug.cgi?id=1662069

dark mode screenshot in windows of picocss bug
Windows 11

light mode screenshot in linux of picocss bug
Linux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants