We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bef6271 commit bf03370Copy full SHA for bf03370
src/lib/core/style/_vendor-prefixes.scss
@@ -33,4 +33,9 @@
33
cursor: -webkit-grabbing;
34
cursor: grabbing;
35
}
36
+
37
+@mixin backface-visibility($value) {
38
+ -webkit-backface-visibility: $value;
39
+ backface-visibility: $value;
40
+}
41
/* stylelint-enable */
src/lib/dialog/dialog.scss
@@ -1,4 +1,5 @@
1
@import '../core/style/elevation';
2
+@import '../core/style/vendor-prefixes';
3
@import '../core/a11y/a11y';
4
5
@@ -35,6 +36,9 @@ $mat-dialog-button-margin: 8px !default;
max-height: $mat-dialog-max-height;
overflow: auto;
-webkit-overflow-scrolling: touch;
+ // Promote the content to a new GPU layer to avoid repaints on scroll.
+ @include backface-visibility($hidden);
42
43
44
.mat-dialog-title {
0 commit comments