Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support certain CSS pseudo-classes and selectors (:nth() and :first) #707

Open
blueray453 opened this issue Oct 5, 2024 · 1 comment

Comments

@blueray453
Copy link

The following code does not work.

@page clean {
    @bottom-right {
        content: none;
    }

    @bottom-left {
        content: none;
    }
}

@page :nth(1) {
    page: clean;
}

@page :first {
    page: clean;
}

Giving error.

An uncaught exception happened within the HTML page: Error: DOMException: Failed to execute 'querySelectorAll' on 'DocumentFragment': ':first' is not a valid selector.

An uncaught exception happened within the HTML page: Error: DOMException: Failed to execute 'querySelectorAll' on 'DocumentFragment': ':nth(1)' is not a valid selector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@blueray453 and others