Closed
Bug 1453903
Opened 6 years ago
Closed 6 years ago
The text inside the box is not correctly rendered in print/print preview
Categories
(developer.mozilla.org Graveyard :: General, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: roxana.leitan, Assigned: MatsPalmgren_bugz)
Details
Attachments
(1 file)
30.28 KB,
image/png
|
Details |
Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID:20180412232808 [Affected versions]: Nightly 61.0a1, Release 59.0.2 [Affected Platforms]: Ubuntu 16.04 x64 [Steps to reproduce]: 1.Launch Firefox with a new profile 2.Open https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow 3.Click "Print" from hamburger menu [Expected result]: The text should be inside the box [Actual result]: A row is displayed outside the box(please see the attached screenshot)
Assignee | ||
Comment 1•6 years ago
|
||
The problem is that the element has a hard-coded height: #example-element { color: #333; margin: 20px auto; padding: 0; border: 2px solid #333; width: 80%; height: 100px; text-align: center; }
status-firefox59:
affected → ---
status-firefox61:
affected → ---
Component: Print Preview → General
Product: Core → developer.mozilla.org
Version: 59 Branch → unspecified
The issue is reproducible only on Ubuntu and Mac OS X, but not on Windows 10. I managed to reproduce it on Nightly 58.0a1 also.
OS: Linux → All
Comment 3•6 years ago
|
||
I do not thing there is a good reason to include the interactive example in print so, this entire component should be hidden inside the print stylesheet.
Updated•6 years ago
|
Priority: -- → P5
Assignee | ||
Comment 4•6 years ago
|
||
The example isn't "interactive" in the sense that it requires the reader to interact with it to view the results, so it should work perfectly fine when printed IMO. The bug here is that an explicit 'height' was specified, it should simply be removed. Specifying a hard-coded height (block-axis size really) is almost always a bad idea, we shouldn't do that.
Assignee | ||
Comment 5•6 years ago
|
||
https://github.com/mdn/interactive-examples/pull/724
Comment 6•6 years ago
|
||
Thanks Mats, I made some comments in the PR on Github.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → mats
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•