mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 03:40:10 +00: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
@ -249,6 +249,15 @@
|
|||||||
transform: translate(@x, @y, @z);
|
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
|
// Background clipping
|
||||||
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
||||||
.background-clip(@clip) {
|
.background-clip(@clip) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user