The <code>size</code> method that appends the rectangle checks if the current selection is <code>g</code> element, so it doesn't really make sense to add a rectangle  and then apply the fill attribute to it.  
Should it be a noop if the selection isn't a g or rect element?