Skip to content

[api-major] Apply the userUnit using CSS, to fix the text/annotation layers (bug 1947248) #19469

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
Feb 11, 2025

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Feb 11, 2025

Rather than modifying the "raw" dimensions of the page, we'll instead apply the userUnit as an additional scale-factor via CSS.

Please note: It's not clear to me if this solution is fully correct either, or if there's other problems with it, but it at least appears to work.


With these changes, the following CSS variables are now assumed to be available/set as necessary: --total-scale-factor, --scale-factor, --user-unit, --scale-round-x, and --scale-round-y.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/ffca678a39ed1e0/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/ffca678a39ed1e0/output.txt

Total script time: 0.87 mins

Published

@mozilla mozilla deleted a comment from moz-tools-bot Feb 11, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Feb 11, 2025
@Snuffleupagus Snuffleupagus force-pushed the bug-1947248 branch 4 times, most recently from 4f7ccf7 to 2bc5a63 Compare February 11, 2025 12:28
@mozilla mozilla deleted a comment from moz-tools-bot Feb 11, 2025
@mozilla mozilla deleted a comment from moz-tools-bot Feb 11, 2025
…n layers (bug 1947248)

Rather than modifying the "raw" dimensions of the page, we'll instead apply the `userUnit` as an *additional* scale-factor via CSS.

*Please note:* It's not clear to me if this solution is fully correct either, or if there's other problems with it, but it at least *appears* to work.

---

With these changes, the following CSS variables are now assumed to be available/set as necessary: `--total-scale-factor`, `--scale-factor`, `--user-unit`, `--scale-round-x`, and `--scale-round-y`.
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/59a7a46dc1cb5d1/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/3645f0b0ce0538d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/59a7a46dc1cb5d1/output.txt

Total script time: 29.16 mins

  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/3645f0b0ce0538d/output.txt

Total script time: 59.09 mins

  • Unit tests: FAILED
  • Integration Tests: FAILED
  • Regression tests: Passed

@calixteman
Copy link
Contributor

/botio-linux preview

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/21c84a1a192100b/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/21c84a1a192100b/output.txt

Total script time: 0.85 mins

Published

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@Snuffleupagus Snuffleupagus merged commit d6f63d0 into mozilla:master Feb 11, 2025
9 checks passed
@Snuffleupagus Snuffleupagus deleted the bug-1947248 branch February 11, 2025 22:13
@Snuffleupagus Snuffleupagus restored the bug-1947248 branch February 11, 2025 22:13
@Snuffleupagus
Copy link
Collaborator Author

/botio makeref

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/0108eb8085230c2/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/d2af14d5f25482d/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/d2af14d5f25482d/output.txt

Total script time: 16.77 mins

  • Make references: Passed
  • Check references: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/0108eb8085230c2/output.txt

Total script time: 29.92 mins

  • Make references: Passed
  • Check references: Passed

@Snuffleupagus Snuffleupagus deleted the bug-1947248 branch February 11, 2025 22:45
@Snuffleupagus Snuffleupagus mentioned this pull request Mar 7, 2025
4 tasks
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.

3 participants