views:

45

answers:

2

Chrome 5 was recently released for Windows, Mac, and Linux, all with the same version number. Are there significant differences in behavior (CSS or JS) between the different platforms, or do they behave pretty much the same?

I'm not interested in how they handle extensions -- just handling of HTML, CSS, and JavaScript.

A: 

They are the same.

Yann Ramin
A: 

The only thing to worry about are fonts, as these are (or may be) different or even unavailable on different platforms. The main problem that can arise from this is that fonts are wider or narrower than the ones for which the design was made, thus breaking some elements (for example, if the fonts are wider, certain text blocks will break onto more rows than intended, making the design look out of place; if the fonts are narrower, "gaps" might appear).

There are two solutions for this:

  1. Use a generic font family (such as sans-serif) and while designing take into account all platforms that you wish to support;
  2. Use @font-face, which is supported by all major browsers (except for IE) -- including Google Chrome. This way, you will be able to provide a fully consistent look across all platforms.

Other than the fonts issue, there's nothing to worry about. Both the layout engine (that takes care of HTML and CSS) and the JavaScript engine are the same across all platforms.


Useful resources for fonts:

Felix

related questions