Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio (2012 and lower) deletes CSS properties
    text
    copied!<p>I have a really strange problem with Visual Studio 2010. When I add CSS properties for a gradient to my stylesheet, Visual Studio is going to delete it after some times of debugging.</p> <p>Example of the code I add to my stylesheet:</p> <pre><code>.button { /* Firefox */ background-image: -moz-linear-gradient(top, #fff, #efefef); /* Chrome, Safari */ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #fff),color-stop(1, #efefef)); /* Modern Browsers*/ background-image: linear-gradient(top, #fff, #efefef); /* IE */ filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#efefef'); } </code></pre> <p>Sometimes when I start debug, Visual Studio edits the CSS:</p> <pre><code>.button { /* Firefox */ background-image: linear-gradient(top, #fff, #efefef); /* Chrome, Safari */ /* Modern Browsers*/ } </code></pre> <p>So Visual Studio seems to delete some attributes it doesn't know. That's really annoying. <strong>Any idea how I could stop that?</strong></p> <p>It's not a problem of CSS comments. It also happen without the comments.</p> <p><strong>Update</strong></p> <p>It seems that it happens by saving of files that included the css file. When I edit my Master Layout and save it, Visual Studio is gonna delete this properties I mentioned above in the linked css file.</p> <p>And its <strong>NOT</strong> a CSS3 problem because it doesn't touch my border-radius classes and ids. So maybe it's the filter property. However I want stop Visual Studio changing my things in the css file without permissions.</p> <p><strong>Update 27. June 2014</strong></p> <p>Problem solved in Visual Studio 2013 <a href="https://connect.microsoft.com/VisualStudio/feedback/details/782677/visual-studio-is-deleting-css" rel="nofollow">https://connect.microsoft.com/VisualStudio/feedback/details/782677/visual-studio-is-deleting-css</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload