-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
fix: fix borders bugs on chrome without breaking in firefox #319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sry, I'm late.
I reviewed the code, but I've not confirmed the display. 🙇
Thank you very much @virtuoushub 👍 |
I would have to say that "weird spikey effect" it's a known bug with |
@virtuoushub Thanks for testing. Looks good 👍 @guastallaigor @mixin border-image-repeat() {
border-image-repeat: stretch;
// for chrome
@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
border-image-repeat: space;
}
// for firefox
@supports (-moz-appearance: meterbar) {
border-image-repeat: stretch;
}
}
@mixin rounded-corners($isDark: false) {
// ...
border-image-slice: 3;
border-image-width: 3;
@include border-image-repeat();
// ...
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for changing. 😆
I just commented on 1 row.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 😆
LGTM 🎉
🎉 This PR is included in version 2.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
ref #316
close #317
Description
This PR is to fix the border bugs on Chrome again, without breaking the issues in Firefox.
I've tested in my Ubunto 18.04, in Chrome 72.0 64bits and Firefox 65.0.1 64 bits and they are working properly, even with the zoom in and out. Not sure if it's the best implementation...
Compatibility
N/A
Caveats
Please test in Safari before accepting it, and if you can in Android Chrome, because I can't test in either of those at this moment.