Skip to content

Instantly share code, notes, and snippets.

@JerrySievert
JerrySievert / bug.css
Created May 20, 2011 21:55
stylus bug
table {
width: 600px;
}
table thead tr th {
text-align: center;
font-weight: bold;
}
table tbody tr:nth-child(odd) {
background-color: #fff;
}
@JerrySievert
JerrySievert / gist:973725
Created May 16, 2011 00:38
test for jsdom src attribute
env_with_src : function() {
var
html = "<html><body><p>hello world!</p></body></html>",
src = "window.attachedHere = 123";
jsdom.env({
html : html,
src : src,
done : function(errors, window) {
assertNull("error should not be null", errors);