question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't properly generate input placeholder rules

See original GitHub issue

source:

input::placeholder { color: black; }
input::-webkit-input-placeholder { line-height: 16px; /* fix chrome bug */ }

output:

input::-moz-placeholder { color: black; }
input:-ms-input-placeholder { color: black; }
input::placeholder { color: black; }
input::-webkit-input-placeholder { line-height: 16px; /* fix chrome bug */ }

expected:

input::-moz-placeholder { color: black; }
input:-ms-input-placeholder { color: black; }
input::-webkit-input-placeholder { color: black; }
input::placeholder { color: black; }
input::-webkit-input-placeholder { line-height: 16px; /* fix chrome bug */ }

I’d expect to be able to “extend” the generated webkit rule (in the example), rather than have it completely omitted by AP.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, Feb 5, 2014

I understand, that you have some point, but them come another user and say, that he want different logic 😉.

0reactions
nikuidevelopercommented, Sep 6, 2017

reduce the padding in textbox. i am able to get the placeholder in firefox

Read more comments on GitHub >

github_iconTop Results From Across the Web

Don't Use The Placeholder Attribute - Smashing Magazine
An input called “Create a Password” being filled out. The placeholder reads, Wait—what's the minimum length? How many numbers do they want ...
Read more >
HTML5 textarea placeholder not appearing - Stack Overflow
If you have an input in your form and placeholder is not showing because a white space at the beginning, this may be...
Read more >
:placeholder-shown - CSS: Cascading Style Sheets | MDN
The :placeholder-shown CSS pseudo-class represents any <input> or <textarea> element that is currently displaying placeholder text.
Read more >
Placeholders in Form Fields Are Harmful
Sometimes placeholders do not disappear when users move their input focus into the field. If the placeholder remains in the field as editable ......
Read more >
The Anatomy of Accessible Forms - Deque Systems
Instructions help users to submit the form successfully. However, if the instructions are provided with a placeholder attribute, then the user ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found