Skip to content

FemtoVG doesn't render things inside a empty element (no clip) when it has opacity #9808

@ogoffart

Description

@ogoffart

Bug Description

The following text doesn't show with femtovg. Removing the opacity binding or setting the opacity to 1 solves the problem.
changing the width or height of the Rectangle to something different than 0 also fixes the problem.
I suppose this has something to do with the layering again.

No problem with other renderers

Reproducible Code (if applicable)

export component MainWindow inherits Window {
    width: 200px;
    height: 200px;
    Rectangle {
        width:0;
        height:0;
        opacity: 0.8;
            Text {
            y: 52px;
            width: 46px;
            text: "foo";
        }
    }
}

Environment Details

  • Slint Version: 1.14, and older
  • Backend/Renderer: femtovg

Product Impact

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions