Share via

Why Marquee tag in the HTML file is not functioning when loading in the Webview2 url?

Vishal2 Bansal 345 Reputation points
2026-03-23T10:39:07.05+00:00

Hi

  1. I have the HTML file with the marquee tag in it. Previously , it used to load in the webview2 and the html renders correctly with the marquee .
  2. But now the marquee is not working . Text is stationary not moving.

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?

Microsoft Edge | Microsoft Edge development
0 comments No comments

Answer accepted by question author
  1. Damien Pham (WICLOUD CORPORATION) 1,755 Reputation points Microsoft External Staff Moderator
    2026-03-23T11:39:24.2066667+00:00

    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

    User's image

    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.    


1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-23T10:39:22.7633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    <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:

    • CSS animations (e.g., @keyframes with transform: translateX(...))
    • JavaScript‑driven scrolling using requestAnimationFrame or CSS transitions

    There is no WebView2 flag or API in the provided material that re‑enables <marquee> behavior in newer runtimes.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.