I would class this as premature optimisation, unless you are hitting some sort of performance issue I wouldn't worry about which approach you take here (especially for code as small as this). I wouldn't be surprised if the style property is already being cached by the DOM internally anyway so there might not even be any extra overhead each time you access it.
Is it advisable to cache objects that are only used twice in JavaScript
To answer your question - if there is a lot of overhead in accessing it then generally it would be a good idea cache e.g. perhaps it's created every time it's accessed, or causes an expensive lookup on a collection. However, if its purely returning the object directly then I see no benefit.
If your after a precise answer then the only way to get that would be to actually benchmark both versions. However, for your particular code I would say any performance difference would be negligible. However, introducing another variable will add unnecessary overhead for the compiler (albeit small).