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)

Unspecified
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: roxana.leitan, Assigned: MatsPalmgren_bugz)

Details

Attachments

(1 file)

Attached image print preview.png
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)
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;
}
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
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.
Priority: -- → P5
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.
Thanks Mats, I made some comments in the PR on Github.
Assignee: nobody → mats
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: