We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Element.visible
1 parent 548580c commit 2c23562Copy full SHA for 2c23562
src/prototype/dom/dom.js
@@ -267,27 +267,6 @@
267
*
268
* $('hidden').visible();
269
* // -> false
270
- *
271
- * ##### Notes
272
273
- * Styles applied via a CSS stylesheet are _not_ taken into consideration.
274
- * Note that this is not a Prototype limitation, it is a CSS limitation.
275
276
- * language: html
277
- * <style>
278
- * #hidden-by-css {
279
- * display: none;
280
- * }
281
- * </style>
282
283
- * [...]
284
285
- * <div id="hidden-by-css"></div>
286
287
- * And the associated JavaScript:
288
289
- * $('hidden-by-css').visible();
290
- * // -> true
291
**/
292
function visible(element) {
293
return $(element).getStyle('display') !== 'none';
0 commit comments