Permalink
Browse files

Bump CSSOM version to fix @-moz-document errors.

See discussion in #687.
  • Loading branch information...
1 parent 565ef43 commit 665ba70004ab172cc2f532211b6d83b89b47143a @domenic domenic committed Nov 23, 2013
Showing with 15 additions and 1 deletion.
  1. +1 −1 package.json
  2. +13 −0 test/browser/css.js
  3. +1 −0 test/runner
View
@@ -64,7 +64,7 @@
"nwmatcher": "~1.3.1",
"request": "2.x",
"xmlhttprequest": ">=1.5.0",
- "cssom": "~0.2.5",
+ "cssom": "~0.3.0",
"cssstyle": "~0.2.3",
"contextify": "~0.1.5"
},
View
@@ -0,0 +1,13 @@
+"use strict";
+
+var jsdom = require("../..").jsdom;
+
+exports["should not give CSS parsing errors upon encountering @-moz-document (GH-687)"] = function (t) {
+ var css = ".x @-moz-document url-prefix() { .y { color: blue; } }";
+ var html = "<!DOCTYPE html><html><head><style>" + css + "</style></head><body><p>Hi</p></body></html>";
+
+ jsdom.env({ html: html, done: function (errors, window) {
+ t.strictEqual(errors, null);
+ t.done();
+ } });
+};
View
@@ -95,6 +95,7 @@ var files = [
"jsdom/parsing.js",
"jsdom/env.js",
"jsonp/jsonp.js",
+ "browser/css.js",
"browser/index.js"
];

0 comments on commit 665ba70

Please sign in to comment.