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

add "will-change" property #18590

Closed
wants to merge 1 commit into from
Closed

add "will-change" property #18590

wants to merge 1 commit into from

Conversation

marcobiedermann
Copy link

Using postion: fixed on an element causes a lot of repaint on scrol. Adding will-change: transform will promote the element to it's own layer which improves the framerate.

Article by @paullewis about will-change

@cvrebert
Copy link
Collaborator

This would probably be more appropriate for Bootstrap v4 (the v4-dev branch) than Bootstrap v3. I'm doubtful we'd want to take the potential stability risk, given that v3 is in maintenance mode.

Also, this sounds morally equivalent to the translateZ hack, which we tried before but had to revert due to browser bugs and due to new stacking contexts being unintuitive in some cases. See #13649

@marcobiedermann
Copy link
Author

@cvrebert Yes, you are right. But this is the "right" way to promote an element to it's own layer. Adding translateZ is more of a hack

@cvrebert
Copy link
Collaborator

Closing for v3 due to aforementioned stability concerns.
You can try proposing this change for v4 though.

@cvrebert cvrebert closed this Dec 19, 2015
@marcobiedermann marcobiedermann deleted the feature/position-fixed branch December 19, 2015 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants