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•5 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•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Pushed by mpalmgren@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/24ef927c7a58 Initialize table-row and table-row-group borders to zero in border-collapse:separate tables. r=bzbarsky
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/19104 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 8•5 years ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Updated•5 years ago
|
Description
•