Wrong displaing table borders with RTL direction and border-collapse attributes

RESOLVED FIXED

Status

()

Core
Layout
--
major
RESOLVED FIXED
13 years ago
10 years ago

People

(Reporter: Sergey Ksinishin, Unassigned)

Tracking

({rtl})

1.7 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

13 years ago
Wrong displaing table borders with RTL direction and border-collapse attributes.

If the table has dir="rtl" style "border-collapse:collapse" and table's cells 
has border, then border of table display as dir="ltr", but text display 
correctly.

Try this code:
<--------------------- cut here ----------------->
<html>
<head>
	<title>Untitled</title>
	<style type="text/css">
		.simpletable table {border:1px solid black;border-
collapse:collapse;width:100%;}
		.simpletable2 table {border:1px solid black;width:100%;}
		.simpletable2 td, .simpletable td {border:1px solid black;}
	</style>
</head>

<body>
<div dir="rtl" class="simpletable">
<table>
<tr><td colspan="3" style="text-align: center;"><strong>RTL</strong></td></tr>
<tr><td width="5%">A</td><td width="10%">B</td><td>C</td></tr>
<tr><td>A</td><td>B</td><td>C</td></tr>
</table>
</div>
<br />
<div dir="rtl" class="simpletable2">
<table>
<tr><td colspan="3" style="text-align: center;"><strong>RTL without botder-
collapse</strong></td></tr>
<tr><td width="5%">A</td><td width="10%">B</td><td>C</td></tr>
<tr><td>A</td><td>B</td><td>C</td></tr>
</table>
</div>
<br />
<div dir="ltr" class="simpletable">
<table>
<tr><td colspan="3" style="text-align: center;"><strong>LTR</strong></td></tr>
<tr><td width="5%">A</td><td width="10%">B</td><td>C</td></tr>
<tr><td>A</td><td>B</td><td>C</td></tr>
</table>
</div>

</body>
</html>
<--------------------- cut here ----------------->
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Core
QA Contact: firefox.general → core.layout
Version: 1.0 Branch → 1.7 Branch

Comment 1

13 years ago
which build do you use? please retry with a recent nightly

Comment 2

13 years ago
I tried the code pasted with Mozilla 1.8a6 build 2005010606 under XP Pro and I
see no border problem, no text direction problem and no layout problem. 
Reporter, can you try with a recent build and explicit what are the actual and
expected results. Also, if you want to submit a testcase, then best is to attach
it to the bugfile. 

Comment 3

13 years ago
I hope I fixed this by the checkins for bug 267420 and bug 174470, so any
nightly after 2004-12-27 should be fine.
(Reporter)

Comment 4

13 years ago
Created attachment 170534 [details]
Test for RTL direction table with border-collapse:collapse
(Reporter)

Comment 5

13 years ago
Nightly Builds 20050106 fix all problem.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 13 years ago
Resolution: --- → FIXED

Comment 6

10 years ago
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
You need to log in before you can comment on or make changes to this bug.