Closed Bug 1833471 Opened 1 year ago Closed 1 year ago

Implement :first for @page rules

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: alaskanemily, Assigned: alaskanemily)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-needed)

Attachments

(3 files)

With our current support for named pages, :first will both be the simplest page pseudo-class to implement, and will be immediately useful for existing code.

This currently will not match page-rules based on any selectors with any
pseudo-classes present.

Assignee: nobody → emcdonough
Status: NEW → ASSIGNED
Attachment #9335537 - Attachment description: Bug 1833471 Part 2 WIP - Export @page pseudo-class flags to Gecko style code → Bug 1833471 Part 2 - Export @page pseudo-class flags to Gecko style code
Pushed by emcdonough@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/16164bf63457 Part 1 - Implement @page pseudo-class parsing and rule handling r=emilio https://hg.mozilla.org/integration/autoland/rev/e21e18f3f729 Part 2 - Export @page pseudo-class flags to Gecko style code r=emilio https://hg.mozilla.org/integration/autoland/rev/547eef705668 Part 3 - Add :first page pseudo-class tests. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/40661 for changes under testing/web-platform/tests
Upstream PR was closed without merging

Just a note about why it looks like more tests are failing in WPT css/css-page/page-rule-declarations-000.html, the last expected failure of [CSS Paged Media: parsing @page declarations] indicates some page rules could not be parsed. Before this patch, the two new expected-fails were covered by that annotation because they included :first and :right.

We fail them now because we don't support the properties, but they show up as distinct failures because we can parse the selectors.

Flags: needinfo?(emcdonough)
Pushed by emcdonough@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd4e99d77a6b Part 1 - Implement @page pseudo-class parsing and rule handling r=emilio https://hg.mozilla.org/integration/autoland/rev/e76595d749fb Part 2 - Export @page pseudo-class flags to Gecko style code r=emilio https://hg.mozilla.org/integration/autoland/rev/69c9504ac848 Part 3 - Add :first page pseudo-class tests. r=emilio

Backed out for causing failures on cssom-ruleTypeAndOrder.html, page-rule-declarations-000.html

Backout link

Push with failures

Failure log

Flags: needinfo?(emcdonough)
Upstream PR was closed without merging
Pushed by emcdonough@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c48fab5fd55f Part 1 - Implement @page pseudo-class parsing and rule handling r=emilio https://hg.mozilla.org/integration/autoland/rev/52272706d0b0 Part 2 - Export @page pseudo-class flags to Gecko style code r=emilio https://hg.mozilla.org/integration/autoland/rev/47085465184b Part 3 - Add :first page pseudo-class tests. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Upstream PR merged by moz-wptsync-bot
Flags: needinfo?(emcdonough)
Duplicate of this bug: 1445957
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: