File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ The majority of problem cases we’ve seen are from developers that wanted to be
12
12
before their <html> tag. When in doubt, use the simple and short <!doctype html>.
13
13
_____________________________________________________________________
14
14
15
+ It seems that there is no way to get browser viewport size in "quirks mode"!
16
+
17
+ so, the best way to go seems to be by using <!doctype html> declaration and use
18
+ jquery $(window).width()/$(window).height() or javascript document.documentElement.clientWidth/document.documentElement.clientHeight
19
+
20
+ _____________________________________________________________________
21
+
15
22
Tested all the doctypes declarations below and through all of them it's possible to get the correct browser viewport size:
16
23
17
24
Common DOCTYPE Declarations (html 5 "<!DOCTYPE html>" seems to be the recommended one):
You can’t perform that action at this time.
0 commit comments