Closed
Bug 576956
Opened 15 years ago
Closed 14 years ago
Percentage values for padding give strange results (in textarea)
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 157846
People
(Reporter: u283834, Unassigned)
Details
Attachments
(1 file)
1.21 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6
Using percent values for padding gives wrong values for the scroll height computation and has no further effect.
Please have a look at the attached reproduce.
Reproducible: Always
Steps to Reproduce:
1. Set padding right on a textarea to 10%, padding top and bottom to 1px
2. Calculate the scroll height of the element
Actual Results:
1. The scroll height = height + padding + padding.
2. The padding-right:10% has no effect.
Expected Results:
1. Expected scroll height = height + padding.
2. The padding-right:10% should have about the same effect as padding-right:50px, in this case.
Comment on attachment 456037 [details]
Test case
Click the text areas to show the computed scroll height (element.scrollHeight).
Updated•14 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•