Fixed merge conflict
Added correct idRefHas.. test
color.js restricted to rendering elements only