Skip to content

<select> elements (and other form controls) should override certain css properties #37895

@simonwuelker

Description

@simonwuelker

For example:

<body style="color:blue">
    <select>
        <option>Foo</option>
        <option>Bar</option>
    </select>
</body>

In Servo, the text inside the <select> is blue, in firefox (and all other browsers) it is black.

This particular case could be fixed by adding color: initial to the shadow tree, but we likely don't want to do this for every single css property. Perhaps there's a way to tell stylo to not cascade styles here?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions