Conditional Comments or IE Hacks

Thus, on my interweb travels by another CSS programmer, I noticed a group of people using fake or asterisk shortcuts that are IE vendor specific browsers for debugging purposes, although the W3C does not parse this as valid CSS.

I personally prefer comment conditions where you can at least refer to IE-specific CSS, which is valid, but I think the only problem with this would be to add extra CSS.

Therefore, I am interested to know about what you prefer and the positive or negative consequences of each method.

Comment on conditonals or provider specific hacks for IE?

PS - Honestly, this should be stated if you support IE layout or not :-)

+3
source share
2 answers

Conditional style sheets are the way to go. The word "hack" itself means that you are doing what you should not. But a few short words on both:

Conditional Style Sheets

  • (+) Pure CSS code
  • (+) Easier to manage
  • (+) Ease of understanding for other developers
  • (+) CSS checks
  • (-) More CSS files (thus more server load)

Khaki

  • (+) Faster (possible)
  • (-) Puts your CSS
  • (-) CSS does not check
  • (-) Very obscure for other developers (especially inexperienced)
  • (-) May cause problems with newer versions of IE
+3
source

, . , , css, ( , ). , css , , IE, , . , CSS , , .

+1

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


All Articles