Why is the HTML tag width smaller when serving with a local server?

I have an empty (templated html) index.html

file with the following style:

html {
  width: 100%;
  overflow: hidden;
}

      

If I serve the file from the server or open it directly from the hard drive, the tag width is html

correct.

File: ///var/www/html/foobar1/index.html

somedomain.com/index.html

width 1280px

If I start Apache server or Python server and look in the containing folder

local / foobar1

width 1163.636px

document.getElementsByTagName('html')[0].clientWidth
1163
document.getElementsByTagName('html')[0].offsetWidth
1164

      

Chrome Version 42.0.2311.135 (64-bit)

works in Ubuntu14.04.2

This does not happen in Firefox. Is this a bug or am I missing some configuration?

index.html

: https://gist.github.com/givanse/ed850a0983d53c766d2f

So far I have:

  • cleared all browser data.
  • disable all extensions

no cubes

+3


source to share


1 answer


I couldn't find the culprit, ended up:

sudo apt-get remove google-chrome
rm -r ~/.config/google-chrome/

      



And reinstall.

+1


source







All Articles