Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "QUnit test for overriding important css declarations, referen…

…ces #4427"

This reverts commit 1299e89.

Conflicts:

	test/unit/css.js
  • Loading branch information...
commit 312df0441b16981dd697d74fcbc1e1f212b47b7e 1 parent 0ff4c69
@jeresig jeresig authored
Showing with 0 additions and 19 deletions.
  1. +0 −4 test/data/testsuite.css
  2. +0 −15 test/unit/css.js
View
4 test/data/testsuite.css
@@ -109,7 +109,3 @@ div#show-tests * { display: none; }
#nothiddendiv { font-size: 16px; }
#nothiddendivchild.em { font-size: 2em; }
#nothiddendivchild.prct { font-size: 150%; }
-
-div.isimportant {
- background-color: rgb(255, 255, 255) !important;
-}
View
15 test/unit/css.js
@@ -381,21 +381,6 @@ test("marginRight computed style (bug #3333)", function() {
equals($div.css("marginRight"), "0px", "marginRight correctly calculated with a width and display block");
});
-test("$().css override !important css declarations (bug #4427)", function(){
- expect(4);
- var div = jQuery("<div/>", {
- "class": "isimportant" // background-color: #fff !important
- });
- div.css("backgroundColor", "rgb(0, 255, 0)");
- equals( div.css("backgroundColor"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
- equals( div.css("background-color"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
-
- div.css("background-color", "rgb(0, 255, 0)");
- equals( div.css("backgroundColor"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
- equals( div.css("background-color"), "rgb(0, 255, 0)", "Background color is overrided to rgb(0, 255, 0)" );
-
-});
-
test("jQuery.cssProps behavior, (bug #8402)", function() {
var div = jQuery( "<div>" ).appendTo(document.body).css({
position: "absolute",
Please sign in to comment.
Something went wrong with that request. Please try again.