I fail to get the computed style value of color with jsdom:
require("jsdom").env({
html: '<html><head><style> html { color: red; } </style></head><body></body></html>',
done: function(errors, window) {
console.log('color: "'+window.getComputedStyle(window.document.body).color+'"');
}
});
The previous test returns "" instead of "rgb(255, 0, 0)" or "red" ...
(note that this work properly in a browser)
Do I miss something ?