From a2a185b1711e8c43c2965694bf296074faabd0ba Mon Sep 17 00:00:00 2001 From: Tim Kelty Date: Mon, 18 Nov 2013 16:17:29 -0500 Subject: [PATCH] Add conditionals for IE support variables --- compass/stylesheets/toolkit/_clearfix.scss | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/compass/stylesheets/toolkit/_clearfix.scss b/compass/stylesheets/toolkit/_clearfix.scss index aa8eabe..4eeeb63 100644 --- a/compass/stylesheets/toolkit/_clearfix.scss +++ b/compass/stylesheets/toolkit/_clearfix.scss @@ -14,9 +14,11 @@ $clearfix-direct: false !default; } @else { /* for IE 6/7 */ - *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); - /* non-JS fallback */ - *zoom: 1; + @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { + *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); + /* non-JS fallback */ + *zoom: 1; + } &:before, &:after { @@ -35,9 +37,11 @@ $clearfix-direct: false !default; } @else { /* for IE 6/7 */ - *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); - /* non-JS fallback */ - *zoom: 1; + @if $legacy-support-for-ie6 or $legacy-support-for-ie7 { + *zoom: expression(this.runtimeStyle.zoom="1", this.appendChild(document.createElement("br")).style.cssText="clear:both;font:0/0 serif"); + /* non-JS fallback */ + *zoom: 1; + } &:before, &:after {