Skip to content

[web - html] pictures containing just text generate a canvas #96498

@yjbanov

Description

@yjbanov

When using the HTML renderer, if a picture contains just text and nothing else, the renderer creates a bitmap canvas and renders the text into it. That's overkill. We should just use a <p> tag. This was discovered in an internal (for which we don't seem to have a label). In the app, this generates extra 10ms of compositing activity in the browser executed on the main thread, blocking frames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)e: web_htmlHTML rendering backend for Webengineflutter/engine related. See also e: labels.platform-webWeb applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions