-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Weird thick border in .input-group-btn #14237
Comments
I assume you meant "Weird" rather than "Wired"? |
Both of the elements have 1px borders, true, but the negative padding is supposed to make the borders overlap... |
The double border continues to exist in 38.0.2103.0 canary (64-bit), as well. Same version of OSX, as @hnrch02. Setting |
The problem doesn't occur in Safari 7.0.5 or Firefox 31 though, so changing |
Chrome browser bug perhaps? |
Looks like it. Can't reproduce in Opera 23.0.1522.60. What's strange though is that not everybody is able to reproduce this. |
@hnrch02 It does work but it's obviously a hack. You'll gain a pixel on the input, while appearing to lose one on the button. Try it out. Still only displays the single pixel border. Here it is in the extreme on FF 31 with a -10px margin. |
@zacechola Sorry, I wasn't implying that using |
Understandable, @hnrch02. I wasn't suggesting it as a great fix either, merely as a curiosity that it works fine in the last-child with margin-left, but not first-child with margin-right. |
Definitely a browser thing when one variation of a component behaves well, but the other doesn't. Not sure we can do much about it in v3.x. |
@mdo Care to file a Chrome bug then, maestro? |
Given it's changed back and forth, I'm inclined to see if this works itself out. Also, I want to revisit the structure of these in v4. The extra wrapper around buttons and addons is rather necessary given the behavior of inputs and buttons across browsers. |
Since this hasn't worked itself out in the intervening year, I filed a Chrome bug:https://code.google.com/p/chromium/issues/detail?id=534750 |
|
Seems to be broken again as of Chrome Canary 48.0.2530.0 😞 |
https://code.google.com/p/chromium/issues/detail?id=534750 Closes #17438 Closes #14237 [skip sauce]
It's been fixed in WebKit Nightly! See https://trac.webkit.org/changeset/191623 and http://wkbug.com/149366 Refs #17438, #14237 [ci skip]
Remove http://wkbug.com/149935 from Wall of Browser Bugs It's been fixed in WebKit Nightly! See https://trac.webkit.org/changeset/191623 and http://wkbug.com/149366 Refs #17438, #14237 [ci skip]
This is still an issue with Chrome 48.0.2564.109 m (Windows 7). I found a work around that seems to fix it in chrome and not negatively affect other browsers. CSS:
|
@crazyjat Yep, that's why https://code.google.com/p/chromium/issues/detail?id=534750 is still open. |
Yes I am aware, but I wanted to convey my work around to anyone suffering with this issue. I doubt that the Chrome issue will be fixed any time soon as this is a direct result of the fact that Chrome does not "render" table cells with fractional pixel sizes. In the case above, the width of the button is a decimal value (IE: 102.4343px) because it is an inline-block element and the width is calculated based on the width of the text and the cell width is a whole pixel size (IE: 103px;). It might be possible to also work around this issue by turning off subpixel font rendering, but I'm not sure. |
I met same problem, after googling I found here and zacechola 's answer solves my problem, thanks
|
Maybe it is correct, but it looks weird. In official docs is it possible to see between left
Go!
button andinput
.The text was updated successfully, but these errors were encountered: