Is it safe to use the css property "visibility"?

Is it safe to use the css property "visibility"? Will it work in all major browsers?

+3
source share
7 answers

According to W3Schools , it is supported in all major browsers.

Please consider if you are really using visibility, as the item still occupies a space on the page (it will just be blank). If you want it to be as if the element was not on the page at all, consider using it display:none.

+8
source

Mozilla Developer Network :

╔════════════════╦═════════════╗═══════════════════╗══════════╗════════════╗
β•‘     Chrome     β•‘   Firefox   β•‘ Internet Explorer β•‘  Opera   β•‘   Safari   β•‘ 
╠════════════════╬═════════════╣═══════════════════╣══════════╣════════════╣
β•‘       1.0      β•‘     1.0     β•‘       4.0         β•‘    4.0   β•‘     1.0    β•‘
β•‘                β•‘             β•‘                   β•‘          β•‘            β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•©β•β•β•β•β•β•β•β•β•β•β•β•β• 

( ):

: . Chrome , , ; <tr>, <thead>, <tbody> <tfoot>, <col> <colgroup> . Firefox <col> <colgroup> , : . Opera, , , , <tfoot>, <tbody>.

+3

.

. Internet Explorer ( IE8) "" "".

+2

visibilityworks well, but opacitysome workarounds are needed. It is noteworthy that IE8 and below (not sure about IE9) do not support it, but they do support filterthat does the same.

+1
source

Yes, it will work in all browsers.

0
source
0
source

Source: https://habr.com/ru/post/1784074/


All Articles