Cannot find an element via JavaScript which does exist

That worked! Seems like ths css doesn’t though.
image