From 6bad0f84f4fad1cb8c71f06182d317763a83366f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Mon, 5 Feb 2018 16:57:01 +0100 Subject: [PATCH] Remove `clip-path` from `element-invisible` mixin As proposed in [Bootstrap](https://github.com/twbs/bootstrap/pull/25197) and [HTML5BP](https://github.com/h5bp/html5-boilerplate/pull/2025), I recommend to remove `clip-path` for now since it causes severe performance issue in Chrome on scroll, as reported in [Bootrasp's #24906](https://github.com/twbs/bootstrap/issues/24906) and [HTML5BP's #2012](https://github.com/h5bp/html5-boilerplate/issues/2021). --- scss/util/_mixins.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/scss/util/_mixins.scss b/scss/util/_mixins.scss index 4dced95863..89ef0c3ff1 100644 --- a/scss/util/_mixins.scss +++ b/scss/util/_mixins.scss @@ -221,7 +221,6 @@ overflow: hidden #{$important}; clip: rect(0,0,0,0) #{$important}; white-space: nowrap #{$important}; - clip-path: inset(50%) #{$important}; border: 0 #{$important}; } @@ -238,7 +237,6 @@ overflow: visible #{$important}; clip: auto #{$important}; white-space: normal #{$important}; - clip-path: none #{$important}; } /// Vertically centers the element inside of its first non-static parent,