Closed Bug 327409 Opened 19 years ago Closed 17 years ago

List alignment problem with Apple iPod feedback page

Categories

(Core :: Layout, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 316317

People

(Reporter: mozillabugs.3.maxchee, Unassigned)

References

()

Details

Attachments

(5 files)

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060214 Camino/1.0 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1) Gecko/20060214 Camino/1.0 See screenshots for a comparison of the rendering done by Gecko and Webkit (arguably the reference rendering for pages on apple.com) Reproducible: Always
Attached image Gecko rendering
Attached image Webkit rendering
I don't see this problem on my side (Camino 1.0, Firefox latest trunk). But it depends widely on the font-size used; my minimum font-size is set to 12px. The problem, I think is that the checkbox is slightly taller in Camino then it is in Safari. On that page, the checkbox is floated left, and at small font-sizes, pushes the next line to the right. What Camino does is correct in this situation. (and Apple should review their coding practices, a simple clear:left in the stylesheet would fix the problem).
I just realized another problem with Camino's rendering. If you look at how the text is aligned with the checkbox, you will realized that Camino placed the text higher than Safari. I don't believe this is the right way to render according to Apple's style guidelines for Aqua. I think this bug is specific to Camino.
Attached file minimized test case
As coded on Apple's site. I've put the list twice: once at the same font-size as Apple (10px), once setting the font-size to 12px.
Next to the checkbox, I've added a plain html span with the same properties as the box generated by the checkbox. The 'image' of the checkbox is indeed postioned slightly lower in Camino compared to Safari. (added the red border to illustrate the exact positioning of the objects). The checkbox in Camino has a computed height of 15px (that is hardcoded in forms.css, line 612 in my copy). The box in Safari has a computed height of 12px. The 'image' used by Camino is actually 12px tall. If I change, in forms.css, the height for the input[type="checkbox"] to 12px (from 15px), then both browsers display the same -- in this particular testcase. I'll have to do further testing to determine the exact implications of this change on other uses (i.e. when the checkbox is na inline element, the default).
To illustrate the point in my previous comment, in this test, I changed the height of the checkbox, overriding the UA stylesheet (forms.css). The checkbox is aligned to the top as it is in Safari (version 2.03). fwiw, I'll add that current versions of Safari do not allow resizing the height of the checkbox. I downloaded the latest version of WebKit and played around with various values. On those builds, the author can modify the height/width. Nightly Safari then resizes the 'image' to match the specified size. (http://nightly.webkit.org/builds/)
This is a dupe of a really old layout bug. cl
Whiteboard: dupeme
do you still see this with ? WFM Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a3pre) Gecko/20070216 Minefield/3.0a3pre
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Whiteboard: dupeme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: