New issue
Advanced search Search tips

Issue 922011 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

<input type=button> with newline in value does not wrap

Project Member Reported by zcorpan@gmail.com, Jan 15

Issue description

Consider this test:

<input type=button value="1&#10;2">

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/6512

In Firefox the 1 and 2 are on separate lines. Safari shows just a 1, but styling the button with -webkit-appearance: button gives the same result as Firefox.

wpt in https://github.com/web-platform-tests/wpt/pull/14824
 

Comment 1 by tkent@chromium.org, Today (80 minutes ago)

Status: Available (was: Untriaged)
I think this behavior comes from Internet Explorer.

WebKit sets white-space:pre if -webkit-appearance:push-button. Blink strips newlines from the value.  IMO it should be specified in UA stylesheet, and I don't think -webkit-appearance should affect his behavior.

Sign in to add a comment