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

Clarify empty page vs empty content for "browsingContext.print" command #797

Open
whimboo opened this issue Oct 15, 2024 · 2 comments
Open
Labels
module-browsingContext Browsing Context module needs-discussion Issues to be discussed by the working group

Comments

@whimboo
Copy link
Contributor

whimboo commented Oct 15, 2024

At the moment the browsingContext.print command has to raise a invalid argument error if the page dimensions are lower than 0.0352 in (2.54 / 72). This is fine, but we have tests under web-platform which assume the same behavior when the actual content area is below that threshold. In that specific case the margin is set to the page height, width or both.

Test results can be seen at wpt.fyi.

Even through the content area is empty it doesn't affect the page size. And as such we basically should not raise an invalid argument error. This is probably an oversight when we landed those tests, and needs to be clarified by Google folks.

@OrKoN can you please have a look? Thanks

CC @jgraham @juliandescottes @lutien @gsnedders

@whimboo whimboo added module-browsingContext Browsing Context module needs-discussion Issues to be discussed by the working group labels Oct 15, 2024
@gsnedders
Copy link
Member

See also: #473

@whimboo
Copy link
Contributor Author

whimboo commented Oct 17, 2024

Interesting is as well the following comment:
w3c/csswg-drafts#8335 (comment)

When a page uses the @page media query and sets a size of the page that is too small Chrome seems to ignore it. Is that still true? I haven't tested it.

If we agree that a zero-sized content needs to raise we have to update the BiDi spec to make that clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module-browsingContext Browsing Context module needs-discussion Issues to be discussed by the working group
Projects
None yet
Development

No branches or pull requests

2 participants