Skip to content

Text colour wrong in GitHub text boxes #19401

Closed

Description

@atouchet

URL: https://github.com/

The colours of the text box text in GitHub are off. In Firefox they appear grey but in Servo they show up as black and white.

Image of issue (Firefox left, Servo right):

GitHub text boxes

See "Search GitHub" and the sign up boxes. Tested in Windows 10 with Browser.html.

Activity

  1. tigercosmos commented on Nov 28, 2017

    @tigercosmos
    Contributor

    Where is the suspected code that can fix this? CSS read color?

  2. emilio commented on Nov 28, 2017

    @emilio
    Member

    That's the input placeholder.

  3. tigercosmos commented on Nov 28, 2017

    @tigercosmos
    Contributor

    Are there any code that dealing with color of placeholder?

  4. jdm commented on Nov 28, 2017

    @jdm
    Member

    The placeholder code works by providing layout with the placeholder text content when layout asks for it, then layout styles it like non-placeholder content:

  5. self-assigned this
    on Jan 17, 2018
  6. ferjm commented on Jan 18, 2018

    @ferjm
    Contributor

    I think there are a couple of issues here:

    With a reduced test case like:

    <html>
    <head>
      <style>
      input {
          color: red;
      }
      input::placeholder {
          color: blue;
      }
      </style>
    </head>
    <body>
      <input type="text" placeholder="Banana" />
    </body>
    </html>

    the layout is different in Gecko (left) and Servo (right):

    screen shot 2018-01-18 at 11 23 13

  7. ferjm commented on Jan 18, 2018

    @ferjm
    Contributor

    I believe Servo does not support the ::placeholder pseudo-element.

    Actually, it seems that at least Stylo supports it, but it does not seem to be working properly. I'll investigate more.

  8. ferjm commented on Jan 18, 2018

    @ferjm
    Contributor

    Apparently there's support for Gecko, but not for Servo, so I opened #19808

  9. removed their assignment
    on Jan 18, 2018
  10. added
    C-has-manual-testcase
    S-blocked-on-external
    on Jan 18, 2018
  11. pwnorbitals commented on Nov 14, 2020

    @pwnorbitals

    Is this still reproducible lately ?

  12. atouchet commented on Nov 14, 2020

    @atouchet
    ContributorAuthor

    Yes. The text is the search box is still white instead of grey.

  13. lumiscosity commented on Jul 26, 2025

    @lumiscosity
    Member

    placeholder seems to be hardcoded to be gray now, but the problem still persists, as proven by running the test case which should dye it blue instead. Tested on Arch Linux x86_64, servo built against commit id 9d29017, compared against Firefox 141.0, Epiphany 48.5 and Chromium 138.0.7204.168 (ordered left to right).

    Image
  14. removed
    S-blocked-on-external
    on Sep 3, 2025
  15. lumiscosity commented on May 17, 2026

    @lumiscosity
    Member

    ::placeholder is here 🎉

    Tested on Arch Linux x86_64, Servo built against commit 6c2ac81, Firefox 150.0.3.

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions