Closed
Bug 145001
Opened 23 years ago
Closed 23 years ago
button element defaults to white-space: pre
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: AndrewCottrell, Assigned: rods)
Details
A button element defaults its white-space value to pre. I think (IMHO etc) that
the principle of least surprise indicates that its white-space value should
default to normal.
Here is a minimal test page
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>button test</title>
</head>
<body>
<form>
<button style="white-space: normal;">
this is some text
</button>
</form>
</body>
</html>
Comment 1•23 years ago
|
||
*** This bug has been marked as a duplicate of 55285 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 2•23 years ago
|
||
Nice one Jesse. You posted just ahead of me (midair...)! :-)
Andrew FYI why not put your testcase into an attachment so someone can review
your example without having to create the testcase for themselves. Use the
"Create a New
Attchment" link to attach a testcase. :-)
Status: RESOLVED → VERIFIED
Comment 3•23 years ago
|
||
Thanks for the 'heads up', will attach in future :-)
Had previously search but didn't find duplicates :-(
You need to log in
before you can comment on or make changes to this bug.
Description
•