You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/lib/capo.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -890,6 +890,7 @@ function $c322f9a5057eaf5c$var$validateMetaViewport(element) {
890
890
];
891
891
if(!validValues.includes(interactiveWidget))warnings.push(`Unsupported value "${interactiveWidget}" found.`);
892
892
}
893
+
if("shrink-to-fit"indirectives)warnings.push("The shrink-to-fit directive has been obsolete since iOS 9.2.\n See https://www.scottohara.me/blog/2018/12/11/shrink-to-fit.html");
893
894
constvalidDirectives=newSet([
894
895
"width",
895
896
"height",
@@ -900,7 +901,8 @@ function $c322f9a5057eaf5c$var$validateMetaViewport(element) {
900
901
"interactive-widget"
901
902
]);
902
903
Object.keys(directives).filter((directive)=>{
903
-
return!validDirectives.has(directive);
904
+
// shrink-to-fit is not valid, but we have a separate warning for it.
Copy file name to clipboardExpand all lines: snippet/capo.js
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -891,6 +891,7 @@ function $580f7ed6bc170ae8$var$validateMetaViewport(element) {
891
891
];
892
892
if(!validValues.includes(interactiveWidget))warnings.push(`Unsupported value "${interactiveWidget}" found.`);
893
893
}
894
+
if("shrink-to-fit"indirectives)warnings.push("The shrink-to-fit directive has been obsolete since iOS 9.2.\n See https://www.scottohara.me/blog/2018/12/11/shrink-to-fit.html");
894
895
constvalidDirectives=newSet([
895
896
"width",
896
897
"height",
@@ -901,7 +902,8 @@ function $580f7ed6bc170ae8$var$validateMetaViewport(element) {
901
902
"interactive-widget"
902
903
]);
903
904
Object.keys(directives).filter((directive)=>{
904
-
return!validDirectives.has(directive);
905
+
// shrink-to-fit is not valid, but we have a separate warning for it.
0 commit comments