Closed Bug 24366 Opened 25 years ago Closed 23 years ago

bad alignment of table headers and captions when dir=rtl

Categories

(Core :: Layout: Tables, defect, P3)

defect

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: erik, Assigned: buster)

References

Details

(Keywords: html4, rtl, testcase)

Attachments

(1 file)

To: mozilla-layout@mozilla.org
From: Simon Montagu <simon@softel.co.il>
Newsgroups: netscape.public.mozilla.layout
Subject: Alignment of table headers and captions
Date: Wed, 19 Jan 2000 12:17:13 +0200
Organization: Softel Software Technologies
Message-ID: <38858F29.FE708A48@softel.co.il>

I am working in the IBM Bidi for mozilla project, and have been testing
table alignment issues.

The attachment shows two copies of a table, one with dir=ltr and the
other with dir=rtl. Notice that the cells in the rtl table are left
aligned -- OK, that's bug #1802.

But the column headers and caption are aligned right, instead of center.
If I use a stylesheet with

hd {text-align: left;}
caption {text-align: left;}

they are aligned left on both tables, but text-align: center; is ignored
by the rtl table.

Simon
Attached file Simon's test case
Assignee: troy → karnaze
Component: Layout → HTMLTables
QA Contact: petersen → chrisd
Changing component
blocks are probably to blame for this. The following doesn't center align 
the text either. Reassigning to Kipp's bug list.

<body dir=rtl>
 <div style="border: 1px solid black; text-align:center">foo</div>
</body>
Assignee: karnaze → kipp
M16 at the earliest
Target Milestone: M16
mine! mine mine mine!  all mine!  whoo-hoo!
Assignee: kipp → buster
Low priority for beta2.  Moving to M19.
Status: NEW → ASSIGNED
Target Milestone: M16 → M19
redistributing bugs across future milestones, sorry for the spam
Target Milestone: M19 → M21
This bug has been marked "future" because the original netscape engineer working 
on this is over-burdened. If you feel this is an error, that you or another 
known resource will be working on this bug,or if it blocks your work in some way 
-- please attach your concern to the bug for reconsideration. 

Please note:  the folks who are interested in bidi may fix this as part of their 
work.  If so, we would be happy to fold that change back into the main branch, 
assuming it's safe, low impact, etc.  We'll deal with that when and if the time 
comes.
Target Milestone: M21 → Future
Depends on: text-dir
Blocks: html4.01
Keywords: html4
*** Bug 47841 has been marked as a duplicate of this bug. ***
Keywords: testcase
I wounder if this is fixed by the nsLineLayout.cpp changes in the IBMBIDI patch
on bug 62777?
QA contact update
QA Contact: chrisd → amar
I today's build, the headers of the tables are centered. I guess this was fixed 
during the Bidi landing.
This appears to be fixed and working with the testcase attached.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
 Marking verified on Build ID # 2001-07-27-00-0.9.2
Platform: WIN2K
Status: RESOLVED → VERIFIED
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.

Attachment

General

Created:
Updated:
Size: