Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How much of an effect can different operating systems have on displaying web pages?

I've seen a lot of users on this site provide operating system specs when describing web development bugs and I've seen a few instances of things working on one OS but not another.

Is there an actual difference in what gets processed by let's say IE6 on different versions of windows? Or the exact same version of firefox on ubuntu as opposed to mac?

This may be a noob question, but I'm really curious.

like image 438
Maxx Avatar asked Mar 24 '12 21:03

Maxx


People also ask

Why might a Web page appear differently in different browsers?

Websites are made up of a set of instructions spoken in a web code language, most often HTML or CSS. Often, different browsers interpret code languages differently, which results in different interpretations.

Does it matter the operating system when it comes to web browser?

Thanks to advances in virtualization, cloud technology and the Web, it matters less and less to users which operating system is behind their desktop screens -- or, for that matter, their tablet and smartphone displays. Don't get me wrong. Operating systems will remain important for as long as we use computers.

How do different browsers effect How do you website is viewed?

Different browsers often interpret or display website source code like HTML and CSS in slightly different ways, resulting in the same website looking and feeling different accordingly. If these differences don't affect the site's functionality, you don't necessarily need to be concerned.

Will a Web page appear the same when viewed in any browser?

Browsers fetch the content of a web page and render it for you to see. The W3C is an organisation that sets the standards for how browsers should render elements in code (HTML and CSS). In theory this means all browsers should interpret pages exactly the same.


2 Answers

There are essentially 4 categories of cross-OS bugs that can occur in website (unintentionally; ignoring things like the web developer sniffing the user agent and screwing with unrecognized results, or using a plugin that can only work on one platform, such as Silverlight). Ordered in the most-common to least-common, from my personal experience

  1. Assumptions about fonts and kerning -- If the user's operating system does not match your own, and you specify a font that your system has that theirs does not, the text will not have exactly the same length and possibly height, even when specifying a specific point size (the lowercase 'm' should match, but all other characters can differ, like the height of the capitals). This can wreak havoc on fixed-sized layouts, especially with headings that are expected to be only one line long. Lately, this can be mitigated by buying a "webfont" (usually both old IE and the new modern standard web font are included) and using that in your CSS, hosting the font for the user to download. This can produce a "flash" as the rendering is switched to it once downloaded, though, so you definitely need to specify a long caching time.
  2. Assumptions about form elements -- Since these HTML elements are created by the operating system directly, rather than by the browser, even for the same browser they can look different, have different sizes and behaviors, between operating systems. Styling these elements reduces the variability, but some of the form elements (like the <input type="file">) cannot be styled. Just give them a large buffer in your layout.
  3. Buggy plugins -- Even if the plugin exists across all operating systems, like Flash, generally they work best on Windows, and then Linux and Mac fight it out for second place (usually more effort put into the Mac port, but on Linux there may be Wiki guides to get it working better, and the distro packagers may use these tricks when auto-installing the plugin for you). The only solution I know is, if you're a Windows dev, to have a VirtualBox image of a Linux distro like Ubuntu or Fedora that you test your site on, and see how poor the plugin performs when you add all of your bells and whistles, then assume that Macs are roughly the same performance.
  4. Actual bugs in the HTML renderer -- These can happen, and as the pace of browser development is increasing, the feature/bug parity gap is widening between platforms. Generally, the "native" OS of the browser does the best, followed by whichever platform uses it the most after that. I rarely see regressions, so once something is working across all OSes for a browser, it basically stays that way. You have to be doing something real special to run into this.
like image 78
2 revsuser1207456 Avatar answered Oct 05 '22 23:10

2 revsuser1207456


10 years ago, this answer would have been a resounding yes. For instance, IE5 on the Mac was a very different code base than on Windows, and rendered things quite a bit different. But, with modern browsers this is generally not so much the case.

There are still some minor differences. For instance, safari on the Mac (not sure about FF) renders with mac-styled controls, which can have different sizes, borders, font-sizes, etc.. This can cause subtle rendering problems between platforms, but generally not anything to worry about unless a single pixel can mess up your design.

Fonts are another issue, because different fonts exist on different systems, and they have different metrics.

Javascript rendering can be an issue between browsers, but not usually the same version on different OS's.

The latest fad is hardware acceleration, which can be different between OS's, but should generally just result in speed of rendering differences..

like image 41
Erik Funkenbusch Avatar answered Oct 05 '22 23:10

Erik Funkenbusch