Skip to content

Commit

Permalink
Avoid trying to create empty DrawTarget for painting range input shadow.
Browse files Browse the repository at this point in the history
After bug 1918838 we can get a way smaller DPIRatio which ends up with a
zero-sized draw target. I don't think we care much about not drawing the
shadow in that case.

Differential Revision: https://phabricator.services.mozilla.com/D228074

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1928736
gecko-commit: dd1e7d287b6651b30511ff6991e87871b7101c6a
gecko-reviewers: gfx-reviewers, bradwerth
  • Loading branch information
emilio authored and moz-wptsync-bot committed Nov 6, 2024
1 parent d2b38b3 commit a39ccae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions css/css-masking/mask-image/firefox-bug-1928736-crash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<style>
input:in-range {
mask-image: url(#a);
}
* {
zoom: 32%;
}
</style>
<canvas id="a"></canvas>
<input type="range">

0 comments on commit a39ccae

Please sign in to comment.