Closed Bug 1818501 Opened 1 year ago Closed 1 year ago

CSS @page :first doesn't work correctly

Categories

(Core :: Print Preview, enhancement)

Firefox 109
enhancement

Tracking

()

RESOLVED DUPLICATE of bug 813187
Tracking Status
firefox111 --- affected
firefox112 --- affected

People

(Reporter: pkirkaas, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0

Steps to reproduce:

SUPER EASY TO DEMO:
With Firefox, open the MDN developer documentation for @page :first
https://developer.mozilla.org/en-US/docs/Web/CSS/:first

Halfway down there is a demo - press the "Print" button

Note the result described in the doc is not the actual result.

Repeat above, except use Edge instead of Firefox

Edge DOES produce the result described.

Actual results:

The first page of the print preview has the text in the top left, just like the second page.

Expected results:

The text on the first page of the print preview should have been centered, as specified in the documentation page

Hello, thank you for the bug report!
Managed to reproduce this issue on(using the link provided in the description):

  • Firefox 111.0;
  • Nightly 112.0a1;

Tested and reproduced on:

  • macOS 12;
  • Windows 11;

Moving the Product to "Core" and Component to "Print Preview". Please change if there's a better fit.
Setting as NEW so the developers can have a look.
Thank you.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Untriaged → Print Preview
Ever confirmed: true
Product: Firefox → Core

We do not support any pseudo-classes for @page rules yet. :first is definitely the easiest to support, but work has not started on it yet.

We have a bug tracking this already, bug 813187.

Status: NEW → RESOLVED
Type: defect → enhancement
Closed: 1 year ago
Duplicate of bug: 813187
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.