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

.affix translate3d fix is now breaking itself #14123

Closed
vicary opened this issue Jul 11, 2014 · 10 comments
Closed

.affix translate3d fix is now breaking itself #14123

vicary opened this issue Jul 11, 2014 · 10 comments
Labels
Milestone

Comments

@vicary
Copy link

vicary commented Jul 11, 2014

Looks like Chrome has been fixing this bug itself at some point, making the -webkit-transform: translate3d(0,0,0) fix actually forces it render as if it is position: absolute; instead of position: fixed;.

Could anyone confirm this? Or is it me who messed the CSS up?

@cvrebert cvrebert added the css label Jul 11, 2014
@cvrebert
Copy link
Collaborator

X-Ref: #13649.

@cvrebert
Copy link
Collaborator

@vicary What OS and what version of Chrome? The nav menu in the Bootstrap docs that uses Affix seems to be working fine on Mac Chrome v35.0.1916.153.

@vicary
Copy link
Author

vicary commented Jul 11, 2014

This issue occurs in both Windows and Mac, Chrome is at version 35.0.1916.153 right now.

I want to add that I am using nested affix in both body and the nav to create some composite effect, couldn't isolate this issue at the moment.

A quick fix on my side will be overriding all of the .affix transforms with none, I'll get back once I can reproduce this later.

@cvrebert
Copy link
Collaborator

Please post a JS Fiddle or other live example that demonstrates the problem.

@twk3
Copy link

twk3 commented Jul 11, 2014

using transforms currently makes children position:fixed relative to that block, according to the current spec. See https://code.google.com/p/chromium/issues/detail?id=20574 and http://meyerweb.com/eric/thoughts/2011/09/12/un-fixing-fixed-elements-with-css-transforms/

If you want to nest your affixed elements, you will have to work within those limitations for now.

@cvrebert
Copy link
Collaborator

So then the question becomes whether nested affixes were/are ever officially supported, which determines whether this is a regression bug or not a bug at all.

@mdo
Copy link
Member

mdo commented Jul 12, 2014

Nested affixes? As in, affixing something that's within an already affixed element? If so, that's never been intended to be supported.

@mdo
Copy link
Member

mdo commented Jul 12, 2014

I'm also probably just going to revert the affix translate3d thing... for this and the rendering issues for fonts on Windows.

@mdo mdo added this to the v3.2.1 milestone Jul 12, 2014
mdo added a commit that referenced this issue Jul 12, 2014
…ent for text rendering and position wonkiness
@mdo mdo closed this as completed Jul 12, 2014
@maniqui
Copy link

maniqui commented Aug 5, 2014

I've added a comment on this thread showing another issue with translate3d before seeing this has been already reverted. Thanks :)

@cvrebert
Copy link
Collaborator

cvrebert commented Aug 5, 2014

@maniqui This issue only removed it from the Affix plugin.

@twbs twbs locked and limited conversation to collaborators Aug 5, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
…rmance enhancement for text rendering and position wonkiness
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants