Safari is stupid: Part 1
Part 1 because I’m sure I’ll find more of these.
I’ve been debugging some JavaScript this morning trying to get it to work in Safari. Here are some examples of why that took TWO HOURS:
- You can’t get
element.style.border, but you can set it.
- For a transparent element
element.style.backgroundColor = 'transparent', butgetComputedStyle(element,null).getPropertyValue('background-color') = 'rgba(0,0,0,0)'; i.e. black, but wholly transparent.
In a not-Safari’s-fault tangent, if you want individual channels from an RGB value split(", ") is BAD CODE.
Matthew Jones
Please wait - comments are loading






Traditionally I’m not one for the reflective entries. Frankly I’m not one for the entries at all. I’m more of a Blogs Cow, grazing around others entries until the inevitable day when I am shot and eaten. At least I will be pretty tasty.




