-
-
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
Repaint fixes #13410
Repaint fixes #13410
Conversation
…t Z with IE9 support vs using translate3D
…repaint on scrolling
Not sure whether we should really use a mixin here. We've switched to Autoprefixer for handling vendor prefixing, which made all of our vendor prefix mixins deprecated (& subject to deletion in v4), so it seems weird to add a new one that'll be deprecated right from the get-go. |
will-change might be be of relevance to this http://www.aerotwist.com/blog/bye-bye-layer-hacks/ |
@cvrebert Oh, I didn't know about that change in v4. If you're down for it, I can make the repaint-fix changes without the new mixin if you think that'll help for v3. @NickColley That's awesome! I've only started following Paul's stuff recently - must have missed that one. Very excited to see the future of will-change. |
Heya, Just made an update and push that removed the .translateZ mixin, and added .translate3d in it's place for the navbars and .affix. |
As cvrebert mentioned Bootstrap uses autoprefixer so you could just have the pure transform property, yay less code. Might be It'd be nice to do something like: .will-change {
transform: translate3d(0, 0, 0);
} .affix {
.will-change();
} Frees you up to changing the implementation incase it changes in the future. |
Also this needs to be rebased against the latest master @ItsJonQ. |
OK, cool. It's also the rtl files that have been removed. |
Thanks for the heads up! The changes were made a while ago, and I haven't updated anything as I was waiting to hear back. I can make whatever updates/changes needed - just lemme know :) |
bump grunt-saucelabs to v5.1.3
@ItsJonQ: you will need to rebase against the latest upstream master branch. |
@ItsJonQ also you'll need to remove the vendor prefixes too as I mentioned above 👍 |
…t Z with IE9 support vs using translate3D
…repaint on scrolling
Hey guys, I hope everything went through okay. If you guys have some free time, I'd really appreciate it if you guys can double check to make sure that I didn't break anything. Thanks! |
Nah, it's still wrong @ItsJonQ. You shouldn't have changes in non existent files like the RTL files or the merge patches. https://help.github.com/articles/interactive-rebase So basically |
Alternatively, if you're like me @ItsJonQ, you can open a new PR :). Let's figure out any final feedback here first though. I'll dive in... |
Or someone from us can cherry pick the changes if needed, as long as they are reviewed :) |
As far as I can tell, this all looks great, aside from the unrelated files @XhmikosR mentioned and the un-prefixed, non-mixin version of Make those changes and open a new PR (preferably with a single commit), or try the rebase and squash thing again if you like. Your call :). |
Thanks guys for being so patient + understanding :). This is the first time I'm contributing to a public project - I've learned a ton so far! @mdo I think it would be easiest to open a new pull request, haha. Thanks again. You guys rock \m/ |
@ItsJonQ Awesome! Go ahead and close this and open a new one when you're all set. Thanks so much—and for it being your first, you're doing great <3. |
Successor: #13649. |
Hey hey,
Applied translateZ / translate3d to fixed elements to prevent browser repaint when scrolling.
These changes were originally part of a Bootstrap reset I made called "Lil' B"
http://itsjonq.github.io/lil-b/
Also added a new mixin under vendor-prefixes.less - .translateZ(@z). This targets translateZ directly.
I initially wanted to use .translate3d to target the "Z" axis for the repaint fixes.. but I believe translateZ has IE9 whereas translate3d doesn't:
http://caniuse.com/transforms3d
Hope this helps!
For you guys:
https://pbs.twimg.com/media/Bl3XWPkIUAAm66k.jpg:large