Closed Bug 1334680 Opened 8 years ago Closed 8 years ago

Box shadows missing on block edges of pages in print preview (except first/last page)

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla54
Tracking Status
firefox54 --- verified

People

(Reporter: neerja, Assigned: neerja)

References

Details

Attachments

(3 files)

No description provided.
Blocks: 1166147
Assignee: nobody → npancholi
Comment on attachment 8831331 [details] Bug 1334680 - Use the same box shadow on every page in print preview. https://reviewboard.mozilla.org/r/107894/#review109080 r=me, though one thing to keep an eye out for: ::: layout/style/res/ua.css:258 (Diff revision 1) > + box-decoration-break: clone; > margin: 0.125in 0.25in; > } Hmm, so technically this will make us reapply this "margin" on every pair of pages, too (.125in) This might not make a difference in practice, because maybe we do Print Preview's between-page-spacing using some other mechanism (not this "margin" property) anyway. (If we only depended on this margin to separate the print-preview pages, then the pages would be smashed into each other in current builds due to the issue that you're fixing here. And they're not smashed into each other, so there must be something else handling the separation/placement.) But do keep an eye out for unexpected extra space between pages in your reftests, after this change. If there is a noticeable increase from this and it's awkwardly large, we might want to reduce this margin a bit.
Attachment #8831331 - Flags: review?(dholbert) → review+
Comment on attachment 8831331 [details] Bug 1334680 - Use the same box shadow on every page in print preview. https://reviewboard.mozilla.org/r/107894/#review109080 > Hmm, so technically this will make us reapply this "margin" on every pair of pages, too (.125in) > > This might not make a difference in practice, because maybe we do Print Preview's between-page-spacing using some other mechanism (not this "margin" property) anyway. (If we only depended on this margin to separate the print-preview pages, then the pages would be smashed into each other in current builds due to the issue that you're fixing here. And they're not smashed into each other, so there must be something else handling the separation/placement.) > > But do keep an eye out for unexpected extra space between pages in your reftests, after this change. If there is a noticeable increase from this and it's awkwardly large, we might want to reduce this margin a bit. Update: I just tested stock Nightly against a build with this patch applied, and I'm not seeing any new space being introduced between pages -- just nicer shadows. So that's good. (And I guess we're not actually relying on this "margin" property for page-separation right now. *shrug*.)
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2492fd15497c Use the same box shadow on every page in print preview. r=dholbert
For reference / posterity, here's a screenshot of the buggy print-preview issue that's being fixed in this bug. The start/end box-shadows between pages were being awkwardly & abruptly clipped, in a way that disrupts the "page floating above a gray background" illusion.
...and here's how the shadow's expected to look. Before the fix here, only the final page would have a bottom-shadow like this. Now all of the pages will look like this. (Yay!)
And for the record, this blocks bug 1166147 because it makes us render reftest-print shadows reliably regardless of their writing-mode, which we need for bug 1166147's reftests. (Without this fix, we skip block-start/block-end shadows, and those skipped shadows are on different sides depending on the writing-mode, as of bug 1166147.)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Flags: qe-verify+
Reproduced this issue using info from comment 6 and comment 7 on an old Nightly build. The box shadow is properly displayed on pages in print preview with 54 beta 2. Tested on Windows 7 x64 and Ubuntu 16.04 x64 LTS.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: