Developing and testing features or extensions for Microsoft Edge
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
Mine Webview2 runtime version: 146.0.3856.72
Older webview2 runtime version with which it was working previously: 120.0.2210.77
So can you help why is this behavior? Is the <marquee tag> functionality removed from the webview2 with 146.x.x.x versions?
Developing and testing features or extensions for Microsoft Edge
Answer accepted by question author
Hello @Vishal2 Bansal ,
Based on this document https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/marquee#browser_compatibility, this feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it and update existing code if possible.
To determine if the browser you are using can render this or not, check the browser compatibility in this link https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/marquee#browser_compatibility
Disclaimer: The above links are not from Microsoft, they provide safe and accurate information
Hope this clarifies things. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide provide feedback.
Thank you.
<marquee> is a legacy, non‑standard HTML element that was only ever supported by some browsers and engines. In the provided documentation it’s described as an Internet Explorer–specific extension, with behavior controlled by attributes such as behavior, direction, scrollAmount, scrollDelay, and loop.
WebView2 uses the Microsoft Edge (Chromium) engine. As the underlying engine evolves, legacy, non‑standard features like <marquee> can change behavior or stop working entirely. The change in behavior between WebView2 Runtime 120.x and 146.x is due to changes in the Chromium/Edge engine, not to a WebView2‑specific setting that can be toggled.
The <marquee> element should be considered obsolete and unsupported going forward. To restore scrolling behavior, replace <marquee> with standards‑based alternatives, for example:
@keyframes with transform: translateX(...))requestAnimationFrame or CSS transitionsThere is no WebView2 flag or API in the provided material that re‑enables <marquee> behavior in newer runtimes.
References: