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)
Core
Layout
Tracking
()
VERIFIED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | verified |
People
(Reporter: neerja, Assigned: neerja)
References
Details
Attachments
(3 files)
No description provided.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → npancholi
Comment hidden (mozreview-request) |
Comment 2•8 years ago
|
||
mozreview-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
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 3•8 years ago
|
||
mozreview-review-reply |
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
Comment 5•8 years ago
|
||
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.
Comment 6•8 years ago
|
||
...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!)
Comment 7•8 years ago
|
||
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.)
Comment 8•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
Updated•8 years ago
|
Flags: qe-verify+
Comment 9•8 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•