Closed Bug 139627 Opened 22 years ago Closed 20 years ago

Table rules drawn ignoring dir=rtl setting

Categories

(Core :: Layout: Text and Fonts, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 174470

People

(Reporter: jacobs, Assigned: mkaply)

References

Details

(Keywords: rtl, testcase)

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+)
Gecko/20020422
BuildID:    2002042209

The rules drawn between cells of a table are
always drawn as if the directionality of the
table is ltr.
There are two tables in the example--an ltr table
that is rendered correctly.  The rtl table below
it has the same structure as the ltr table, but it
is not rendered correctly.

Reproducible: Always
Steps to Reproduce:
1.View the attached HTML
2.Compare the ltr table at the top with the
  rtl table below it.

Actual Results:  The rtl table has rules that overwrite columns.

Expected Results:  Rules should be drawn between cells, so they
should not overwrite columns.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
     "http://www.w3.org/TR/html4/strict.dtd">
<HTML lang="en" dir="ltr">
<HEAD>
<TITLE>rules=all</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
</HEAD>
<BODY>
<H1>rules=all</H1>
<TABLE lang="en" dir="ltr" frame="void" rules="all">
<CAPTION lang="en" dir="ltr">frame=void rules=all</CAPTION>
<TR>
  <TH lang="en" dir="ltr" rowspan="2"></TH>
  <TH colspan="2" lang="en" dir="ltr">Average01</TH>
  <TH rowspan="2">Red02<BR>eyes03</TH>
</TR>
<TR>
  <TH lang="en" dir="ltr">height04</TH>
  <TH lang="en" dir="ltr">weight05</TH>
</TR>
<TR>
  <TH lang="en" dir="ltr">Males06</TH>
  <TD lang="en" dir="ltr">11</TD>
  <TD lang="en" dir="ltr">12</TD>
  <TD lang="en" dir="ltr">13</TD>
  <TD lang="en" dir="ltr">14</TD>
</TR>
<TR>
  <TH lang="en" dir="ltr">Females07</TH>
  <TD lang="en" dir="ltr">21</TD>
  <TD lang="en" dir="ltr">22</TD>
  <TD lang="en" dir="ltr">23</TD>
</TR>
</TABLE>

<TABLE lang="he" dir="rtl" frame="void" rules="all">
<CAPTION lang="en" dir="ltr">frame=void rules=all</CAPTION>
<TR>
  <TH rowspan="2" lang="he" dir="rtl"></TH>
  <TH colspan="2" lang="he"
dir="rtl">&#x05D4;&#x05B8;&#x05D0;&#x05B8;&#x05E8;&#x05B6;&#x05E5;01</TH>
  <TH lang="he" dir="rtl"
rowspan="2">&#x05D1;&#x05BC;&#x05B8;&#x05E8;&#x05B8;&#x05D0;02<BR>&#x05D0;&#x05B5;&#x05EA;03</TH>
</TR>
<TR lang="he" dir="rtl">
  <TH lang="he"
dir="rtl">&#x05D1;&#x05BC;&#x05B0;&#x05E8;&#x05B5;&#x05D0;&#x05E9;&#x05C1;&#x05B4;&#x05D9;&#x05EA;04</TH>
  <TH lang="he" dir="rtl">&#x05D1;&#x05BC;&#x05B8;&#x05E8;&#x05B8;&#x05D0;05</TH>
</TR>
<TR>
  <TH lang="he"
dir="rtl">&#x05D0;&#x05B1;&#x05DC;&#x05B9;&#x05D4;&#x05B4;&#x05D9;&#x05DD;06</TH>
  <TD lang="he" dir="rtl">&#x05D0;&#x05B5;&#x05EA;11</TD>
  <TD lang="he"
dir="rtl">&#x05D4;&#x05B7;&#x05E9;&#x05C1;&#x05B8;&#x05DE;&#x05B7;&#x05D9;&#x05B4;&#x05DD;12</TD>
  <TD lang="he"
dir="rtl">&#x05D0;&#x05B1;&#x05DC;&#x05B9;&#x05D4;&#x05B4;&#x05D9;&#x05DD;13</TD>
  <TD lang="he"
dir="rtl">&#x05D0;&#x05B1;&#x05DC;&#x05B9;&#x05D4;&#x05B4;&#x05D9;&#x05DD;14</TD>
</TR>
<TR>
  <TH lang="he" dir="rtl">&#x05D5;&#x05B0;&#x05D0;&#x05B5;&#x05EA;07</TH>
  <TD lang="he" dir="rtl">&#x05D0;&#x05B5;&#x05EA;21</TD>
  <TD lang="he"
dir="rtl">&#x05D4;&#x05B7;&#x05E9;&#x05C1;&#x05B8;&#x05DE;&#x05B7;&#x05D9;&#x05B4;&#x05DD;22</TD>
  <TD lang="he" dir="rtl">&#x05D5;&#x05B0;&#x05D0;&#x05B5;&#x05EA;23</TD>
</TR>
</TABLE>
<P lang="en" dir="ltr">
Setting border="0" implies frame="void" and, unless otherwise specified,
rules="none".
</P>
</BODY>
</HTML>
Attached file The testcase
Seeing this on linux trunk 2002-04-22-07 too.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Keywords: testcase
*** Bug 223079 has been marked as a duplicate of this bug. ***
I couldn't find this bug before so I posted a duplicate of this bug
(http://bugzilla.mozilla.org/show_bug.cgi?id=223079)
Anyhow, you can see there another example, with the white lines of the forum
posts appearing in the LTR direction, and thus being painted over the table
cells content.
*** Bug 231069 has been marked as a duplicate of this bug. ***
Other Example?

http://www.ezra.org.il/forum/lmf_forum.aspx?forum_id=7

The bar is IE only (I need to convert some things) but u can c the table...
Blocks: 174470
Another example (test + picture): http://starcomsystems.com/hu/mozbug001.htm
this has been fixed by the checkin for bug 174470

*** This bug has been marked as a duplicate of 174470 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Unfortunatly this hasn't been fixed yet.
Table borders are still incorrect on "rtl" direction, while "border-collapse: 
collapse" is set.
Here is an example:

http://nomaed.evil.co.il/moz_bugs/rtl_collapse_mistake.html
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: Layout: BiDi Hebrew & Arabic → Layout: Text
QA Contact: zach → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: