Skip to content

Conversation

@foolip
Copy link
Member

@foolip foolip commented Mar 27, 2025

No description provided.

@foolip
Copy link
Member Author

foolip commented Mar 27, 2025

@mstensho these are the tests I could find by grepping which are clearly about the pseudos first and foremost. Lots of other tests use the pseudos though, are there any that I should include here? The scope of the feature per https://webstatus.dev/features/page-selectors is:

The :first, :left, and :right pseudo-classes select pages based on their position in sequence after pagination. They're often used with the page CSS property, to choose a print layout defined by the @page rule.

@mstensho
Copy link
Contributor

:blank is missing from that list. Then again, there doesn't appear to be any tests for that. Blink doesn't support it, FWIW.

I did find a lot more more by grepping, but I guess I'm seeing the same results as you, and that you decided to omit them.

css/css-page/margin-boxes/content-009-print.html is fun though, and does require :left and :right to work, and checks that counters behave correctly on left and right pages.

Copy link
Contributor

@mstensho mstensho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already left a regular github comment.

@foolip foolip merged commit d6e0599 into web-platform-tests:master Apr 10, 2025
19 checks passed
@foolip foolip deleted the web-features/page-selectors branch April 10, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants