Open Bug 647880 Opened 13 years ago Updated 2 years ago

xml <object>, height attribute: value 'auto' hides part of the object rendering

Categories

(Firefox :: General, defect)

4.0 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: paolo.salvarezza, Unassigned)

Details

Attachments

(1 file)

999 bytes, application/xml
Details
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0

When rendering a xml file containing the tag <object data = "filepath" class = "xmlfile" style = "height: auto">, Firefox displays the object inside a box smaller than the size of the object.
The 'auto' value should compute the size required for rendering the content of the object (according also to its css sheet) and than adapt the outer box in order to host that content.
Instead it is necessary to experiment for each object in the xml file a different height value (7em, 10em, 8.5 em...) up to find the ones matching the object size. 

Reproducible: Always

Steps to Reproduce:
1.create 2 xml files, A and B
2.create an object tag inside A with address of B as data attribute
3.put css automatic height as attribute
4.browse A file in Firefox

 
Actual Results:  
5.check if all the content of B file is visible inside the object box: part of the content will be hidden
6.change manually the height attribute up to reach the expected result

Expected Results:  
height:auto in the inline css or in the related css sheet should adapt object box size to the object content, computing rendered height of the content

Firefox 3.6 and 4.0 (beta 10)
Windows 7
Version: unspecified → 4.0 Branch
Can you attach the 2 xml examples?
Attached file examples
example to show the effect of CSS height:auto on objects which are external and internal to a xml (or html) files.
Not sure if I am allowed to post a link but here it is anyway:

Issue still relevant, encountered on the website of a japanese Budo seller:

https://seidoshop.com/
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: