Closed
Bug 159171
Opened 23 years ago
Closed 23 years ago
Image: style="width:auto; height:95%" does not work
Categories
(Core :: Layout: Images, Video, and HTML Frames, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mschaeffler, Assigned: pavlov)
Details
Attachments
(1 file)
236 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.0.0) Gecko/20020530
BuildID: 2002053012
In the following document the image is not scaled as wanted:
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Photosammlung</title>
<meta name="author" content="Mathias Schäffler">
<meta name="description" content="Photosammlung">
<meta name="generator" content="CorelScript by M. Schäffler">
<meta name="language" content="de">
<link rel="stylesheet" href="../Tools/photo.css" type="text/css">
</head>
<body>
<img src="BasilikumBluehend.jpg" style="margin:1px 8px; vertical-align:middle;
width:auto; height:95%; border:0;">
<p class="up">
<a href="index.html"><img src="../Tools/up.gif" border="0" alt="Up"></a>
</p>
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. View the attached HTML page.
Actual Results: The image was not scaled
Expected Results: Scale the Image.
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Photosammlung</title>
<meta name="author" content="Mathias Schäffler">
<meta name="description" content="Photosammlung">
<meta name="generator" content="CorelScript by M. Schäffler">
<meta name="language" content="de">
<link rel="stylesheet" href="../Tools/photo.css" type="text/css">
</head>
<body>
<img src="BasilikumBluehend.jpg" style="margin:1px 8px; vertical-align:middle;
width:auto; height:95%; border:0;">
<p class="up">
<a href="index.html"><img src="../Tools/up.gif" border="0" alt="Up"></a>
</p>
</body>
</html>
Comment 1•23 years ago
|
||
Reporter: please attach a testcase here, or give us an URL to test. We don't
have the images we need to test it.
Comment 2•23 years ago
|
||
And oh.. please test this with a recent mozilla build. If it works for you,
resolve this bug as WORKSFORME.
![]() |
||
Comment 3•23 years ago
|
||
![]() |
||
Comment 4•23 years ago
|
||
CSS2 spec says, for height:
<percentage>
Specifies a percentage height. The percentage is calculated with respect to
the height of the generated box's containing block. If the height of the
containing block is not specified explicitly (i.e., it depends on content
height), the value is interpreted like 'auto'.
So in this case the value is actually "auto" and the rendering is correct.
Marking invalid, but please reopen if I have missed something (and make sure you
attach a testcase that shows the problem if you do that).
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
Product: Core Graveyard → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•