Emulation.setSmallViewportHeightDifferenceOverrideAllows overriding the difference between the small and large viewport sizes, which determine the value of the `svh` and `lvh` unit, respectively. Only supported for top-level frames.
| Name | Type | Description |
|---|---|---|
difference | integer | This will cause an element of size 100svh to be `difference` pixels smaller than an element of size 100lvh. |
{
"id": 1,
"method": "Emulation.setSmallViewportHeightDifferenceOverride",
"params": {
"difference": 1
}
}
{
"id": 1,
"result": {}
}
const result = await send('Emulation.setSmallViewportHeightDifferenceOverride', {"difference": 1});
console.log(result);