forked from mirrors/gecko-dev
This comes from https://hg.mozilla.org/mozilla-central/rev/0f28fd24bdf3, and was done because of implementation limitations which don't apply anymore (https://bugzilla.mozilla.org/show_bug.cgi?id=737786#c33): * white-space changes don't reframe anymore, they only reflow. * We fixed reframing of native-anonymous content to do the right thing. This aligns <textarea> and <input>, so I think it should be uncontroversial. See https://github.com/w3c/csswg-drafts/issues/6669 for the discussion that prompted this. Differential Revision: https://phabricator.services.mozilla.com/D126471
23 lines
596 B
HTML
23 lines
596 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
:is(input, textarea)::placeholder {
|
|
visibility: hidden;
|
|
padding: 20px;
|
|
float: right;
|
|
overflow: visible;
|
|
|
|
/*
|
|
* This list could be endless given that all non-whitelisted properties
|
|
* are restricted.
|
|
*/
|
|
}
|
|
</style>
|
|
<body>
|
|
<input placeholder='foo'>
|
|
<textarea placeholder='foo'></textarea>
|
|
<!-- for overflow and white-space -->
|
|
<input placeholder='this is a quitelongetextforasmallelement'>
|
|
<textarea placeholder='this is a quitelongetextforasmallelement'></textarea>
|
|
</body>
|
|
</html>
|