Closed Bug 330810 Opened 18 years ago Closed 18 years ago

Carret doesnt show when using position: fixed

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 230701

People

(Reporter: gooijen, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1

when using "position: fixed" the carret dissapears from input-boxes, text-area's and other input controls. YOu can still type in them but you dont know where the typing will be because here is no carret, also you dont know which control has focus

Reproducible: Always

Steps to Reproduce:
this code fails:

<html>
	<head>
		<style type="text/css">
			.EDIT1CSS {position:absolute;left:167px;top:31px;z-index:100;width:121px;height:21px;font-style:normal;font-size:13px;text-decoration: none;text-align:left;}
			.EDIT2CSS {position:absolute;left:167px;top:63px;z-index:100;width:121px;height:21px;font-style:normal;font-size:13px;text-decoration: none;text-align:left;}
			.REGION1CSS {position:absolute;left:100px;top:100px;z-index:60;width:350px;height:200px;font-style:normal;font-size:13px;text-decoration: none;}
		</style>
	</head>
	<body>
  	<table name="REGION1_locker" id="REGION1_locker" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%" height="100%" style="left: 0px; top: 0px; width: 100%; height: 100%; border-collapse: collapse; z-index:10;visibility: visible; position: fixed; background-color:blue;">
  		<tr><td></td></tr>
		</table>
  	<div style="background-color:white;border-style:solid;border-width:1;overflow:auto;padding:0;" class="REGION1CSS" id="REGION1">
			<input type="TEXT" name="EDIT1" value="EDIT1" class="EDIT1CSS" id="EDIT1" tabindex="3">
			<input type="TEXT" name="EDIT2" value="EDIT2" class="EDIT2CSS" id="EDIT2" tabindex="4">
		</div>
	</body>
</html>

while this code works:

<html>
	<head>
		<style type="text/css">
			.EDIT1CSS {position:absolute;left:167px;top:31px;z-index:100;width:121px;height:21px;font-style:normal;font-size:13px;text-decoration: none;text-align:left;}
			.EDIT2CSS {position:absolute;left:167px;top:63px;z-index:100;width:121px;height:21px;font-style:normal;font-size:13px;text-decoration: none;text-align:left;}
			.REGION1CSS {position:absolute;left:100px;top:100px;z-index:60;width:350px;height:200px;font-style:normal;font-size:13px;text-decoration: none;}
		</style>
	</head>
	<body>
  	<table name="REGION1_locker" id="REGION1_locker" border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%" height="100%" style="left: 0px; top: 0px; width: 100%; height: 100%; border-collapse: collapse; z-index:10;visibility: visible; position: absolute; background-color:blue;">
  		<tr><td></td></tr>
		</table>
  	<div style="background-color:white;border-style:solid;border-width:1;overflow:auto;padding:0;" class="REGION1CSS" id="REGION1">
			<input type="TEXT" name="EDIT1" value="EDIT1" class="EDIT1CSS" id="EDIT1" tabindex="3">
			<input type="TEXT" name="EDIT2" value="EDIT2" class="EDIT2CSS" id="EDIT2" tabindex="4">
		</div>
	</body>
</html>

Changing "position: absolute" to "position: fixed" in REGION1_locker makes it fail
Duplicate of Core bug 230701?

*** This bug has been marked as a duplicate of 230701 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.