Closed Bug 369864 Opened 17 years ago Closed 17 years ago

Borders on images rendered inconsistently

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 363220

People

(Reporter: hsumen, Unassigned)

References

()

Details

(Keywords: regression, testcase)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070208 BonEcho/2.0.0.2pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2pre) Gecko/20070208 BonEcho/2.0.0.2pre

Image borders at the url are showing inconsistent rendering. Specifically, one side of a 2px border is only being rendered at 1px. Additionally, the image seems shifted to the right by 1px.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



http://forums.mozillazine.org/viewtopic.php?p=2740544#2740544
Caused by fix of https://bugzilla.mozilla.org/show_bug.cgi?id=177805 ?
I see a little oddness from before bug 177805 landed, but things definitely look worse afterward. It appears that some of the images are shifted over a bit, leading to a white stripe down one side between the border and the image and a cutting into the border on the other side.
Blocks: pixels
Status: UNCONFIRMED → NEW
Ever confirmed: true
I'll try to write up a small testcase later on today if nobody else gets to it first.
Flags: in-testsuite?
Flags: blocking-firefox3?
Keywords: regression
Version: unspecified → Trunk
> a 2px border is only being rendered at 1px. Additionally, the image
> seems shifted to the right by 1px.

Apparently the border is rendered correctly (at least regarding it's width) but it doesn't align with the image. That's because of margin-left/right:auto. Somehow the rounding is inconsistent.
Component: General → Layout
Flags: blocking-firefox3?
Product: Firefox → Core
QA Contact: general → layout
Flags: blocking1.9?
Attached file testcase (obsolete) —
compare the border of a div with that one of an image
sorry, that testcase is useless, because of the inner (inset style) border of the image. there's no misrendering.
Attached file testcase
Attachment #254568 - Attachment is obsolete: true
Notice that the <span/> is rendered incorrectly, too. Maybe the summary should be changed.
I think this is the same as bug 363220.
Depends on: 363220
Marking in-testsuite+ since I believe this is covered by the tests in layout/reftests/pixel-rounding/ marked as failing due to bug 363220.

And I'm marking as duplicate rather than dependency.
Status: NEW → RESOLVED
Closed: 17 years ago
No longer depends on: 363220
Flags: in-testsuite?
Flags: in-testsuite+
Flags: blocking1.9?
Resolution: --- → DUPLICATE
No longer blocks: pixels
Component: Layout → GFX: Thebes
QA Contact: layout → thebes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: