Closed Bug 18548 Opened 20 years ago Closed 20 years ago

screen.height CSS property not working

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: kinger, Assigned: pierre)

Details

Platform: WinNt (SP3)
Build Id: 1999110208

I am displaying an XML document using CSS stylings.  I want to set the root
element's (<story>) width and height to screen.width and screen.height, and have
the contained elements sized relatively using percentages.  'screen.width' is
rendering fine, but screen.height reduces the element (<page> in this case) to
about a quarter of the content area, jumbling up all the content.  Here is the
markup and styles:

story {
	display: block;
	font-family: Comic Sans MS, Arial;
	font-size: 14;
	background-color: white;
	width: screen.width;
	height: screen.height;
}

page {
	display: block;
	position: absolute;
	background-color: #3333FF;
        width: 98%;
	height: 98%;
	top 5%;
	left: 1%;
	right: 1%;
	border-style: solid;
	border-color: black;
	border-width: thin;
}

-------------------------------------------

<story xmlns:html="http://www.w3.org/TR/REC-html40">

  <page>

	<lang1>
	  <sentence>Once upon a time a happy man lived under a coconut tree on a
little island.</sentence>
	</lang1>

	<lang2>
	  <sentence>Un tro roedd dyn hapus yn byw o dan goeden goconyt ar ynys
fach</sentence>
	</lang2>

  </page>

</story>

This bug may be related to #5998
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
screen.width and screen.height are *not* CSS properties; the 2 declarations are
ignored and the width and height values remain 'auto'.

A valid CSS code would be:
  width: 100%;
  height: 100%;

Bug closed as Invalid.
Status: RESOLVED → VERIFIED
Verifying bug invalid
You need to log in before you can comment on or make changes to this bug.