When the page direction is rtl the table margins go wrong
Categories
(Core :: Layout: Tables, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: muhammad1reda, Assigned: MatsPalmgren_bugz)
Details
(Keywords: testcase)
Crash Data
Attachments
(1 file, 1 obsolete file)
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Steps to reproduce:
open this HTML with Firefox
<!DOCTYPE html>
<html>
<head>
<style>
html{direction:rtl;}
table,td,tr {
border: 2px solid black;
}
</style>
</head>
<body>
<table>
<tr> <td>foobar</td><td>foobar</td> </tr>
<tr> <td>foobar</td><td>foobar</td> </tr>
</table>
</body>
</html>
Actual results:
The table borders will be calculated wrong Like in this picture
https://i.stack.imgur.com/V1Iip.jpg
Expected results:
The table borders should be calculated like if direction is ltr , like in this picture
https://i.stack.imgur.com/73r2U.jpg
chrome shows the table as expected on both directions
This is a question I posted on stackoverflow.com 3 years ago when I encountered this issue
https://stackoverflow.com/questions/38816104/why-the-table-margins-go-wrong-when-it-is-dir-rtl
| Reporter | ||
Comment 1•6 years ago
|
||
Mr Lister from stackoverflow.com community commented that "I've tested, and it only started to go wrong in Firefox v41. Older versions are OK."
Comment 2•6 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
| bugherder | ||
Updated•6 years ago
|
Description
•