I have a situation where a div
has two CSS display
properties. One is set to none
and the other is set to block
. However, display: none
overrides display: block
because of CSS specificity.
I can use JavaScript/jQuery to find out the display
value of this element. In this given scenario, the result would be none
because it is the overriding style. However, I would like to be able to retrieve all of the display
values on this element. I want my JavaScript to return none
as well as block
.
Is this even possible?