Skip to content

Commit

Permalink
fix(w3c/style): revert meta viewport to device-width (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Cáceres committed May 30, 2017
1 parent f7c9775 commit ee91b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/w3c/style.js
Expand Up @@ -32,7 +32,7 @@ function createMetaViewport() {
var meta = document.createElement("meta");
meta.name = "viewport";
var contentProps = {
width: "800",
width: "device-width",
"initial-scale": "1",
"shrink-to-fit": "no",
};
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/w3c/style-spec.js
Expand Up @@ -106,7 +106,7 @@ describe("W3C - Style", function() {
var theTest = function(doc) {
var elem = doc.head.querySelector("meta[name=viewport]");
expect(elem).toBeTruthy();
var expectedStr = "width=800, initial-scale=1, shrink-to-fit=no";
var expectedStr = "width=device-width, initial-scale=1, shrink-to-fit=no";
expect(elem.content).toEqual(expectedStr);
};
makeRSDoc(ops, theTest, "spec/core/simple.html").then(done);
Expand Down

0 comments on commit ee91b20

Please sign in to comment.