Closed Bug 405132 Opened 17 years ago Closed 17 years ago

bad css rendering with ul li tag when entered a persian tag; It works in IE & Opera but not in Firefox

Categories

(Firefox :: General, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 405134

People

(Reporter: ace.of.zerosync, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9

<!--  Sample Code  -->
<!--  It works in IE & Opera but not in Firefox  -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
	html, body {
		/*
		
		same bug here
		if set the direction to rtl
		
		English text rendered badly
		
		*/
		direction: ltr;
		margin: 0;
		background: #FFFFFF;
	}

	.divMain {
		position: relative;
		width: 900px;
	}

	.divNav {
		height: 22px;
		background: #FF9900;
		text-align: right;
		padding-right: 35px;
	}

	.navbar {
		display: inline;
	}

	.navbar li {
		display: inline;
		list-style: none;
		margin-left: 35px;
		border-left: 1px solid #000000;
		padding-left: 35px;
	}
	
	.navbar li a {
		color: #FFFFFF;
		text-decoration: none;
	}
	
	.navbar li a:hover {
		color: #FF9900;
		background: #FFFFFF;
	}	
</style>
</head>

<body>

	<center>
    	<div class="divMain">
        
            <br />
            <br />
            <br />
            <br />
            
        
        	<!-- It's OK
            	// Start OK
            -->
            <div class="divNav">
            	<ul class="navbar">
                	<li><a href="javascript:;">Home</a></li>
                	<li><a href="javascript:;">Site Map</a></li>
                	<li><a href="javascript:;">Search</a></li>
                	<li><a href="javascript:;">Links</a></li>
                	<li><a href="javascript:;">Contact us</a></li>
                	<li><a href="javascript:;">About</a></li>
                	<li><a href="javascript:;">Print</a></li>
                </ul>
            </div>
        	<!-- It's OK
            	// End OK
            -->

            
            <br />
            <br />
            <br />
            <br />

            
        	<!-- It's BAD
            	// Start BAD
            -->
            <div class="divNav">
            	<ul class="navbar">
                   	<li><a href="javascript:;">صفحه اصلي</a></li>
                   	<li><a href="javascript:;">نقشه سايت</a></li>
                   	<li><a href="javascript:;">جسنجو</a></li>
                   	<li><a href="javascript:;">سايت هاي مرتبط</a></li>
                   	<li><a href="javascript:;">تماس با ما</a></li>
                   	<li><a href="javascript:;">درباره</a></li>
                   	<li><a href="javascript:;">چاپ</a></li>
                </ul>
            </div>
        	<!-- It's BAD
            	// End BAD
            -->
            
        </div>
        </center>
</body>
</html>

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.