mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 597144 - "Set viewport width and height if both are specified in meta tag" [r=mark.finkle]
This commit is contained in:
parent
78b41b61ad
commit
f7f56c1ae1
@ -2389,7 +2389,7 @@ Tab.prototype = {
|
||||
viewportH = viewportW * (screenH / screenW);
|
||||
} else if (!validW && validH) {
|
||||
viewportW = viewportH * (screenW / screenH);
|
||||
} else {
|
||||
} else if (!validW && !validH) {
|
||||
viewportW = kDefaultBrowserWidth;
|
||||
viewportH = kDefaultBrowserWidth * (screenH / screenW);
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Browser Viewport Page 04</title>
|
||||
<meta name="viewport" content="width=200"/>
|
||||
<meta name="viewport" content="width=200,height=500"/>
|
||||
|
||||
<!--
|
||||
Expected width calculation:
|
||||
|
Loading…
Reference in New Issue
Block a user