Closed
Bug 197654
Opened 23 years ago
Closed 23 years ago
html:iframe within xml document does not respect height:100% but does respect width:100%
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: rvj, Assigned: dbaron)
Details
Attachments
(3 files)
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.2.1) Gecko/20021130
if an xml document contains an html:iframe element with height:100%, the iframe
is not inheriting the containing block height.
Reproducible: Always
Steps to Reproduce:
1. create an xml document with xhtml namespace
2. create a root node and enclose the following tag
3. <html:iframe src="" style="height:100%;width:100%;background:blue;
border:0;" />
Actual Results:
The height of iframe defaults to approximately 100px , width is correctly
rendered as indicated by the iframe's blue background
NB height is correctly rendered if the height is specified in pixels
Expected Results:
The iframe should fill the current Mozilla window (all blue background)
Ive found a work around by defining the containing block as position:absolute.
Not sure if that is how it supposed to work but at least it gets round the main
problem.
| Assignee | ||
Comment 2•23 years ago
|
||
Could you attach a testcase? I suspect, though, that our behavior is correct,
since the CSS spec says that percentage heights on descendants of blocks with
'auto' height (as your root element probably has) become 'auto' heights.
In an htm doc the style would work as expected i.e. the iframe will fill the
window
Im an xml doc it does not even if position absolute is specified in the root
node
If however position:absolute is spcefied in an external css file, then the
entire window will be filled (see the iframe2 example that follows)
work around solution using external css stylesheet and posoition:absolute
Comment 6•23 years ago
|
||
This bug is invalid. The <root> element is not in the html namespace, so its
style attribute means absolutely nothing (and certainly does not mean "apply
this CSS to this element). Putting the <root> in the html namespace leads to
the expected rendering.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•