Skip to content

print: Remove invalid @supports condition. #13101

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

Merged
merged 1 commit into from
Mar 14, 2021

Conversation

emilio
Copy link
Contributor

@emilio emilio commented Mar 14, 2021

@supports() is not supposed to report support for page descriptors, this is
depending on a Chromium bug, which doesn't treat as invalid:

<div style="size: 1pt 1pt">

Even though it should. That is
https://bugs.chromium.org/p/chromium/issues/detail?id=1079214

There's no need to use @supports for this. If the descriptor is not accepted it
will just be ignored.

That way, when Firefox implements @page { size }, which is in progress, it will
get the right behavior.

@timvandermeij
Copy link
Contributor

/botio-linux preview

@timvandermeij
Copy link
Contributor

@emilio The CI failed due to a linting error. You can most likely fix it automatically by running gulp lint --fix.

@supports() is not supposed to report support for page descriptors, this is
depending on a Chromium bug, which doesn't treat as invalid:

```
<div style="size: 1pt 1pt">
```

Even though it should. That is
https://bugs.chromium.org/p/chromium/issues/detail?id=1079214

There's no need to use @supports for this. If the descriptor is not accepted it
will just be ignored.

That way, when Firefox implements @page { size }, which is in progress, it will
get the right behavior.
@emilio
Copy link
Contributor Author

emilio commented Mar 14, 2021

Thanks, fixed!

@emilio emilio force-pushed the print-bogus-supports branch from ec82003 to b932eaf Compare March 14, 2021 14:15
@mozilla mozilla deleted a comment from pdfjsbot Mar 14, 2021
@mozilla mozilla deleted a comment from pdfjsbot Mar 14, 2021
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/0f48b3a1f755ac0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/0f48b3a1f755ac0/output.txt

Total script time: 4.17 mins

Published

@timvandermeij timvandermeij merged commit 93c0626 into mozilla:master Mar 14, 2021
@timvandermeij
Copy link
Contributor

Looks good and successfully tested in various browsers to check that nothing changed about the printing output. Thank you!

@emilio emilio deleted the print-bogus-supports branch March 14, 2021 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants