mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Added the back-face visibility css property to mixins.less, this property prevents the browser flickered experienced especially in Chrome when using 3D transformations.
This commit is contained in:
parent
d335adf644
commit
2165ab2620
1 changed files with 9 additions and 0 deletions
|
@ -249,6 +249,15 @@
|
|||
transform: translate(@x, @y, @z);
|
||||
}
|
||||
|
||||
// Back-face Visibility
|
||||
// This prevents the browser flickering when using to CSS transformations
|
||||
.backface-visibility(@visibility){
|
||||
-webkit-backface-visibility: @visibility;
|
||||
-moz-backface-visibility: @visibility;
|
||||
-ms-backface-visibility: @visibility;
|
||||
backface-visibility: @visibility;
|
||||
}
|
||||
|
||||
// Background clipping
|
||||
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
||||
.background-clip(@clip) {
|
||||
|
|
Loading…
Reference in a new issue