<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with responsive]]></title><description><![CDATA[A list of topics that have been tagged with responsive]]></description><link>https://forums.opera.com/tags/responsive</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 22:23:35 GMT</lastBuildDate><atom:link href="https://forums.opera.com/tags/responsive.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[DevTools Responsive mode reports incorrect viewport width after reload]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have already reported this issue through Opera's official bug reporting system.<br />
Reference: <strong>BS-104581</strong></p>
<p dir="auto">The issue occurs intermittently when “Responsive” is selected in the DevTools Device Toolbar.</p>
<p dir="auto">When the issue occurs, reloading the page while “Responsive” mode is active may cause the layout viewport to be initialized incorrectly, even though the Device Toolbar still displays the expected dimensions.</p>
<p dir="auto">For example, with Responsive mode set to 320 × 568, I observed:</p>
<p dir="auto">window.innerWidth: 1868<br />
document.documentElement.clientWidth: 1868<br />
window.visualViewport.width: 1868<br />
window.screen.width: 320</p>
<p dir="auto">As a result, mobile CSS media queries do not match and the page is rendered as tablet/desktop.</p>
<p dir="auto">Resizing the responsive viewport slightly immediately recalculates the viewport correctly.</p>
<p dir="auto">The issue does not occur when a specific device preset is selected. Switching from “Responsive” to a phone preset and back to “Responsive” may also temporarily clear the issue.</p>
<p dir="auto">Steps to reproduce:</p>
<ol>
<li>Open DevTools.</li>
<li>Enable Device Toolbar.</li>
<li>Select “Responsive”.</li>
<li>Set the viewport to 320 × 568.</li>
<li>Reload the page.</li>
<li>When the issue occurs, the Device Toolbar still shows 320 × 568, but the layout viewport reports a much larger width.</li>
<li>Resize the responsive viewport slightly.</li>
<li>The viewport is immediately recalculated correctly.</li>
</ol>
<p dir="auto">Expected:<br />
The layout viewport should always match the dimensions shown in Responsive mode after reload.</p>
<p dir="auto">Control test:<br />
Selecting a specific phone preset and reloading initializes the viewport correctly.</p>
<p dir="auto">The issue is also reproducible with a standalone HTML file without React, Vite, SCSS or any framework.</p>
<p dir="auto">Environment:<br />
Opera One: 135.0.5973.41<br />
Chromium: 151.0.7922.138<br />
Windows 11 64-bit<br />
Stable channel</p>
<p dir="auto">Kind Regards</p>
]]></description><link>https://forums.opera.com/topic/89418/devtools-responsive-mode-reports-incorrect-viewport-width-after-reload</link><guid isPermaLink="true">https://forums.opera.com/topic/89418/devtools-responsive-mode-reports-incorrect-viewport-width-after-reload</guid><dc:creator><![CDATA[przwojwwp]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>