Incorrect appearance for RTL content inside Simplify Page
Categories
(Core :: Printing: Output, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox58 | --- | wontfix |
firefox59 | --- | fix-optional |
firefox60 | --- | affected |
People
(Reporter: bmaris, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
158.62 KB,
image/png
|
Details |
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•7 years ago
|
||
Comment 5•3 years ago
|
||
This looks more related to reader mode rather than printing.
Comment 6•3 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:Gijs, could you please find another way to get the information or close the bug as INCOMPLETE
if it is not actionable?
For more information, please visit auto_nag documentation.
Comment 7•3 years ago
|
||
(In reply to Hanna Jones from comment #5)
This looks more related to reader mode rather than printing.
I'm going to gently push back on this.
bug 1666247 implemented "simplified" view in print mode.
It reuses a bunch of reader mode stuff, but it also copies/duplicates/reimplements some of it. See in particular this code: https://searchfox.org/mozilla-central/rev/2005e8d87ee045f19dac58e5bff32eff7d01bc9b/toolkit/actors/PrintingChild.jsm#193-228
This HTML looks a bit like this:
<body><div id="container"><div id="reader-header" class="header" style="display: block;"><h1 id="reader-title">الصفحة الرئيسية</h1><div id="reader-credits" class="credits">المساهمون في مشاريع ويكيميديا</div></div><div class="content"><div id="moz-reader-content" style="display: block;"><div id="readability-page-1" class="page"><div id="bodyContent">
<p>من ويكيبيديا، الموسوعة الحرة</p>
... snip ...
</div>
</div>
</div></div></div></div></div></body>
whereas in reader mode both the html
node and the content container node get dir=rtl
(from https://searchfox.org/mozilla-central/rev/2005e8d87ee045f19dac58e5bff32eff7d01bc9b/toolkit/components/reader/ReaderMode.jsm#473 ).
Therefore I think the bug is in how the print code is using readability, which does tell the print code what direction the text it's trying to print has.
This should be reasonably straightforward to fix. :-)
Updated•1 year ago
|
Description
•