-
Notifications
You must be signed in to change notification settings - Fork 18
Position issue inside paper-tabs on Firefox #36
Comments
Innnteresting. Looks like a bug. |
The root cause is that the slotting behaves differently in Firefox. This results in offsetParent being different and hence are positioned differently. Easy to test this by using I'm not sure what the fix is; is this an issue with a polyfill? |
@samuelli |
@motss you're correct! I must've dragged the element in Firefox.
|
I think there might be a bug in Chrome, since I think To make it consistent between Firefox & Chrome, we can ensure I'm not sure which is the correct positioning between Firefox/Chrome though. I suspect we won't want to break what What do you think? |
I think the I also noticed that
That was exactly how I resolved this issue to get rid of the overlapping. |
Awesome, thanks for looking into that. It sounds like we should remove
Awesome, I think that's the way to go. Update position puts half the badge inside the anchor element by default, which is exactly what we're seeing here, so its best to use margin to correctly align it. |
Btw, @motss, if removing |
@samuelli And I'm not too sure why there is a CSS hack since there is nothing seems like really need that hack. Perhaps, there is a need to change the behavior of |
https://www.w3.org/TR/css-transforms-1/#transform-rendering Near the end of the section:
|
@bicknellr Thanks for that. This confirms my suspicions that Chrome is incorrect here. Here's a repro of the issue: http://jsbin.com/dihuhugati/1/edit?html,css,js,output @motss: Changing the behavior of |
paper-badge
insidepaper-tabs
produces different result on the latest version ofFirefox Windows
(Stable
,Dev
),Firefox Linux
(Stable
,Dev
,Nightly
), andFirefox Android Stable
.The
paper-badge
is kind of overlapping the tab's content.Simple Demo to reproduce the issue
Result on Chrome/ Opera
Result on Firefox
The text was updated successfully, but these errors were encountered: