Closed Bug 291191 Opened 20 years ago Closed 20 years ago

image location is miscalculated with stylesheets

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: arman, Unassigned)

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

In the attached example, right clicking on the image doesn't produce
image-related menu items (e.g. save image).  This is caused by the stylesheet
directives.  I guess the menus are confused about where the renderer placed the
image.

Reproducible: Always

Steps to Reproduce:
1. right-click on the image 

Actual Results:  
image related menu items are missing.
Attached image random image
Attached file example of problem
Keywords: testcase
This is because the pre tag is above the image.
Assignee: firefox → nobody
Component: General → Layout
OS: Windows 2000 → All
Product: Firefox → Core
QA Contact: general → layout
Hardware: PC → All
Version: unspecified → Trunk
(In reply to comment #3)
> This is because the pre tag is above the image.
I'm not sure I understand your comment.  By the way, if you decrease the font
size a lot (eg using CTRL+-), the menus eventually work.  So, I'm pretty sure
that the image location is miscalculated.

Oops, I just noticed this problem also applies to events.  e.g. an onclick
placed on the img doesn't work properly either. ughhh.
Summary: with stylesheets, RIGTH-CLICK doesn't produce image-related menu items → image location is miscalculated with stylesheets
> I'm not sure I understand your comment.

Put a background on the <pre> to see.  The <pre> is above the image in the
z-order, so click events in that area go to the <pre>, not the image.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: