What happens if I repeat the CSS style in IE?

In jquery-ui-1.8.6.custom.css, I found this stone:

/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ .ui-datepicker-cover { display: none; /*sorry for IE5*/ display/**/: block; /*sorry for IE5*/ position: absolute; /*must have*/ ... } 

display style seems to be a workaround for a bug in IE. If I understand CSS correctly, this should behave like display: block; (i.e., the first record must be redefined by the second).

For which version of IE is this necessary? Only 5.x or 6?

+4
source share
1 answer

See: http://www.communis.co.uk/dithered/css_filters/css_only/property_empty_comment.html :

 #testElement { color/**/: #00cc00; } 

Is applied
..
Win IE 5.5 - 6.x
..

Not used
Win IE 4.0 - 5.0
..

So, the comment /*sorry for IE5*/ accurately describes the hack - IE5.0 null users who still exist will not be able to see any .ui-datepicker-cover elements.

+3
source

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


All Articles