Closed Bug 503535 Opened 15 years ago Closed 13 years ago

Objects with display:table don't work correctly with <script> tags

Categories

(Firefox :: General, defect)

3.5 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: info, Unassigned)

Details

(Whiteboard: [CLOSEME 2011-2-25])

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; it; rv:1.9.1) Gecko/20090624 Firefox/3.5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; it; rv:1.9.1) Gecko/20090624 Firefox/3.5

The xtml above will work correctly just removing the <script> tag. Also <style> script generates the same bad effect

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

    <title>Untitled</title>
    
</head>




<body>

<div id="content" style="display:table">

	<div id="col1" style="background:lime; display:table-cell;">
	
	<script type="text/javascript">
		document.write("Hello World!");
	</script>

	Colonna 1

	</div>

	<div id="col2" style="background:red; display:table-cell;">

	Colonna 2	

</div>

</div>

</body>
</html>


Reproducible: Always

Actual Results:  
Bad css render

Expected Results:  
Correct css render
Version: unspecified → 3.5 Branch
Also confirmed on Linux (3.5.8 ubuntu brand) and Windows (3.5.8)
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode or a fresh profile? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2011-2-25]
This bug has had the CLOSEME tag for several weeks and the date in the tag is
far gone. If the reporter can still see this issue, Please retest with Firefox
3.6.x or later and a new profile
(http://support.mozilla.com/kb/Managing+profiles). Then please remove the
closeme tag in the whiteboard, mark the bug against the proper version and
comment on the bug.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.