Skip to content

noNonScalableViewport

biome.json
{
"linter": {
"rules": {
"nursery": {
"noNonScalableViewport": "error"
}
}
}
}

Disallow disabling zoom with user-scalable=no in the <meta name="viewport"> element.

Disabling zoom can make page content difficult to read for people with low vision.

See WCAG 1.4.4 and the html-eslint rule for details.

<meta name="viewport" content="width=device-width, user-scalable=no" />
code-block.jsx:1:23 lint/nursery/noNonScalableViewport ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The viewport disables user scaling.

> 1 │ <meta name=“viewport” content=“width=device-width, user-scalable=no” />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 │

Disabling zoom can make page content difficult to read for people with low vision.

Remove the user-scalable=no directive from the content attribute.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

<meta name={"viewport"} content={"user-scalable=no"} />
code-block.jsx:1:25 lint/nursery/noNonScalableViewport ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The viewport disables user scaling.

> 1 │ <meta name={“viewport”} content={“user-scalable=no”} />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 │

Disabling zoom can make page content difficult to read for people with low vision.

Remove the user-scalable=no directive from the content attribute.

This rule belongs to the nursery group, which means it is not yet stable and may change in the future. Visit https://biomejs.dev/linter/#nursery for more information.

<>
<meta name="viewport" content="width=device-width, user-scalable=yes" />
<meta name="viewport" content="width=device-width" />
<Meta name="viewport" content="user-scalable=no" />
</>