Skip to content

Styles on ::placeholder are ignored #43035

Closed

Description

@jdm
<style>
::placeholder {
  background-color: green;
}
</style>
<input placeholder="testing">

Firefox:

Image

Servo:

Image

Activity

  1. added
    C-has-manual-testcase
    on Mar 5, 2026
  2. changed the title [-]Backgrounds on ::placeholder are ignored[/-] [+]Styles on ::placeholder are ignored[/+] on Mar 5, 2026
  3. stevennovaryo commented on Mar 6, 2026

    @stevennovaryo
    Member

    I believe we could try to enable this publicly with the property restriction. Initially it is set to UA because I have a concern about property restriction and to split it off from a huge PR.

  4. self-assigned this
    on Mar 6, 2026
  5. added a commit that references this issue on Mar 9, 2026
    ab83e6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-layout/uncategorizedA-styloC-has-manual-testcase

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions