|
|
|
|
|
by ben0x539
358 days ago
|
|
> but why does the website that's sending me HTML and CSS and Javascript need to know? The website doesn't get told by the browser, but the website is sending you Javascript, and the browser will tell the Javascript when the Javascript politely inquires as to the width and height of the root html element, or some element with text in a funny font in it, and the Javascript is then free to report home. I think hiding layout information like that from Javascript isn't really within reach without a radically different model that breaks a ton of websites. |
|