Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8798217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:02:11+00:00 2026-06-14T00:02:11+00:00

I have a file with defined a couple of CSS3 rules for border shadow,

  • 0

I have a file with defined a couple of CSS3 rules for border shadow, gradients and etc..
For comparability I need to add the behavior: url('/assets/css3pie.htc'); for support in IE.

@mixin box-shadow($props) {
  -webkit-box-shadow: #{$props};
     -moz-box-shadow: #{$props};
          box-shadow: #{$props};
  behavior: url('/assets/css3pie.htc');
}

The behavior rule is added for most of my CSS3 like border-shadow, gradients and border-radius.

Unfortunately I noticed that in the output when I use two or more of those CSS3 rules I also end up with more than one of the behavior: url('/assets/css3pie.htc'); rules for the given object.

An example output is:

button {
-webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  behavior: url("/assets/css3pie.htc"); # first time defined by the border-radius rule
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  behavior: url("/assets/css3pie.htc"); # second time, defined from the box-shadow rule
}

Which is the best solution? Is there a way to check the inheritance tree and whether a rule is already defined?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:02:15+00:00Added an answer on June 14, 2026 at 12:02 am

    It looks that it’a a SCSS bug.

    Most of the properties will get overwritten in similar case, but there are some properties that can be defined more than one time like background.

    That’s why it’s not an SCSS default behavior of overwriting rules. The reason why the behavior property isn’t defined like a should be overwritten property is a bug.

    The prettiest way to solve the issue is by removing the behavior definition property and defining a css3pie mixin, like that:

    @mixin css3pie() {
      behavior: url('/assets/css3pie.htc');
    }
    

    Then to use it, add the following line to every CSS3 enabled element:

    .css3-enabled-element {
      @include css3pie;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have js file where i need to call the function defined in the
I have defined a layer-list with a couple of items on an xml file.
I have an aidl file defined as follows: package com.erbedo.callalert; interface RemoteCallAlert { void
I have a CSS file being defined in my program and for some reason
I have a web page with swf file defined this way <object width=600 height=400
in header file I have defined the following function #ifndef OS_H #define OS_H #include
In my .htaccess file I have defined following rule, RewriteRule t/([^.]+)/$ /videos/tag.php?tag=$1 [QSA] The
In my .htaccess file I have defined the following rule to make my register
We have an idl file with multiple interfaces defined, two of which have someting
I have these 3 file in my program: sample1.h (method in sample1.cpp are defined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.