Lively Kernel canvas
//
DraftDropShadow40true
Wikicontroltruetrue
m=$morph('morph')filterId='drop-shadow'filter=document.getElementById(filterId)if(filter)filter.parentNode.removeChild(filter);(functioncreateFilter(){filterNode=NodeFactory.create('filter',{id:filterId})gausNode=NodeFactory.create('feGaussianBlur',{"in":"SourceAlpha",result:"blur-out",stdDeviation:"4"})offsetNode=NodeFactory.create('feOffset',{"in":"blur-out",result:"the-shadow",dx:"8",dy:"8"})blendNode=NodeFactory.create('feBlend',{"in":"SourceGraphic",in2:"the-shadow",mode:"normal"})filterNode.appendChild(gausNode)filterNode.appendChild(offsetNode)filterNode.appendChild(blendNode)WorldMorph.current().getDefsNode().appendChild(filterNode)})()m.rawNode.setAttribute('filter','url(#'+filterId+')')truetruefalse16truetruefalse
false10.11
true
false
truefalse
nullfalsetruenullfalse
Workspacefalsenulltruefalse
false
falsenullfalsefalsenullnullnullnullfalse
seemstoworkfineinFirefox,partiallyinChromeandnotatallinSafari5317
null76