Open
Bug 1930223
Opened 2 years ago
Investigate setting viewport `<meta>` tag for Android test runs
Categories
(Testing :: Mochitest, enhancement)
Testing
Mochitest
Tracking
(Not tracked)
NEW
People
(Reporter: dshin, Unassigned)
Details
Based on Bug 1768921 Comment 14 - Without meta viewport tag specified (e.g. <meta name="viewport" content="width=device-width, initial-scale=1" />), we end up rendering the document and then scaling it down to viewport size - this introduces rounding errors that need to be papered over.
A quick test of adding to the harness Javascript seems to make the fix test failure in question:
TITLE("MochiTest | ", metadata.path),
+ META({
+ name: "viewport",
+ content: "width=device-width, initial-scale=1",
+ }),
LINK({
However this affects every mochitest, hence why it's spun out here.
You need to log in
before you can comment on or make changes to this bug.
Description
•