Skip to content

Copy the backdrop for non-isolated groups with a soft mask#21604

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
calixteman:issue21593
Jul 20, 2026
Merged

Copy the backdrop for non-isolated groups with a soft mask#21604
timvandermeij merged 1 commit into
mozilla:masterfrom
calixteman:issue21593

Conversation

@calixteman

Copy link
Copy Markdown
Contributor

PR #21455 drew non-isolated blend-mode groups against their backdrop via a direct path on the parent canvas, but a soft mask forces the group onto an intermediate canvas instead. There the inner blend modes composited against transparency, so e.g. a /Multiply highlight was painted opaquely over the text behind it, hiding it.

Copy the backdrop into that intermediate canvas so the blends see the real background. The copy is limited to groups that would otherwise have taken the direct path (source-over, alpha 1, not knockout/gray) but were displaced onto the intermediate canvas by the soft mask.

It fixes #21593.

PR mozilla#21455 drew non-isolated blend-mode groups against their backdrop via a
direct path on the parent canvas, but a soft mask forces the group onto an
intermediate canvas instead. There the inner blend modes composited against
transparency, so e.g. a /Multiply highlight was painted opaquely over the
text behind it, hiding it.

Copy the backdrop into that intermediate canvas so the blends see the real
background. The copy is limited to groups that would otherwise have taken
the direct path (source-over, alpha 1, not knockout/gray) but were displaced
onto the intermediate canvas by the soft mask.

It fixes mozilla#21593.
@calixteman
calixteman requested a review from timvandermeij July 19, 2026 19:10
@calixteman

Copy link
Copy Markdown
Contributor Author

/botio browsertest

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/8be36f06ed328fe/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/cffb2348b6cf78c/output.txt

@codecov-commenter

codecov-commenter commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.84%. Comparing base (ee6d5f2) to head (50601d0).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21604      +/-   ##
==========================================
- Coverage   89.84%   89.84%   -0.01%     
==========================================
  Files         263      263              
  Lines       66757    66764       +7     
==========================================
+ Hits        59975    59981       +6     
- Misses       6782     6783       +1     
Flag Coverage Δ
browsertest 66.53% <100.00%> (-0.02%) ⬇️
fonttest 9.05% <ø> (ø)
integrationtest 69.25% <50.00%> (+<0.01%) ⬆️
unittest 57.48% <50.00%> (+<0.01%) ⬆️
unittestcli 56.43% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/8be36f06ed328fe/output.txt

Total script time: 18.10 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.241.84.105:8877/8be36f06ed328fe/reftest-analyzer.html#web=eq.log

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/cffb2348b6cf78c/output.txt

Total script time: 25.81 mins

  • Regression tests: FAILED
  different ref/snapshot: 1

Image differences available at: http://54.193.163.58:8877/cffb2348b6cf78c/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me, also the reference test difference; thanks!

@timvandermeij
timvandermeij merged commit d314788 into mozilla:master Jul 20, 2026
21 checks passed
@timvandermeij

Copy link
Copy Markdown
Collaborator

/botio makeref

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 1

Live output at: http://54.241.84.105:8877/7a682b5751abe5a/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 1

Live output at: http://54.193.163.58:8877/e0c741d48c08c70/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/7a682b5751abe5a/output.txt

Total script time: 18.21 mins

  • Make references: Passed
  • Check references: Passed

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/e0c741d48c08c70/output.txt

Total script time: 25.56 mins

  • Make references: Passed
  • Check references: Passed

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

Successfully merging this pull request may close these issues.

[Bug]: Highlighting Annotations from Xournal++ Are opaque only in Firefox

4 participants