Skip to content

Input tags inherit text-transform #11362

Closed

Description

@Manishearth

screenshot from 2016-05-24 16 25 21

These are the rust docs. The placeholder (and the text when you type it in) is all caps for some reason, even if you toggle caps lock.

This is due to a text-transform: uppercase on the nav class being inherited by the input. Regular browsers don't seem to do that?

Activity

  1. changed the title [-]Fonts sometimes are all-caps[/-] [+]Fonts sometimes are all-caps in input[/+] on May 24, 2016
  2. changed the title [-]Fonts sometimes are all-caps in input[/-] [+]Input tags inherit text-transform[/+] on May 24, 2016
  3. added
    A-content/css
    on May 24, 2016
  4. Manishearth commented on May 24, 2016

    @Manishearth
    MemberAuthor

    Reduced testcase:

    <html>
    <head><style>
        body {text-transform: uppercase}
    </style></head>
    <body>
    <input placeholder=foo type=text />
    
    this is text
    <div>this is text in a div</div>
    </body>
    </html>

    (jsbin)

    This shows a caps placeholder and input text in servo, but not in other browsers.

  5. Manishearth commented on May 24, 2016

    @Manishearth
    MemberAuthor

    cc @SimonSapin

    Not sure how CSS inheritance is supposed to work here

  6. added a commit that references this issue on May 24, 2016
    2ce9eba
  7. added
    C-has-manual-testcase
    on May 24, 2016
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

    A-content/cssA-layout/textC-has-manual-testcase

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions