Closed Bug 1865332 Opened 7 months ago Closed 7 months ago

Canvas animation can't be zoomed in

Categories

(Core :: DOM: Bindings (WebIDL), defect)

Firefox 121
Desktop
All
defect

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- unaffected
firefox120 --- disabled
firefox121 --- disabled
firefox122 --- verified

People

(Reporter: sbadau, Assigned: emilio)

References

(Depends on 1 open bug, Regressed 3 open bugs, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Found in

  • Nightly 121.0a1

Affected versions

  • Nightly 121.01

Tested platforms

  • Affected platforms: macOS 11.7, Windows 10, Ubuntu 22.04

Steps to reproduce

  1. Navigate to: http://www.effectgames.com/demos/canvascycle/?sound=0
  2. Click on Show Option -> Max (from the ZOOM section).

Expected result

  • The Canvas animation should be zoomed in.

Actual result

  • The canvas animation remains unchanged in size. For additional details, please see the attached screen recording.

Regression range
Found commit message:
Bug 1855763 - Disable -moz-transform and enable zoom on Nightly. r=zcorpan
Pushlog: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=afe375a5bb0a870f7283fc330c2dc8c8bd2ee965&tochange=793a305aa0628613e6681be3a57c4b089fdecf4c

Duplicate of this bug: 1865334

:emilio, since you are the author of the regressor, bug 1855763, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)

Why tho :'(

if (ua.webkit) sty.webkitTransform = 'translate3d(0px, 0px, 0px) scale('+this.contentSize.scale+')';
else if (ua.ff) sty.MozTransform = 'scale('+this.contentSize.scale+')';
else if (ua.op) sty.OTransform = 'scale('+this.contentSize.scale+')';
else sty.transform = 'scale('+this.contentSize.scale+')';

More -moz-transform fallout...

Blocks: csszoom
Component: CSS Parsing and Computation → Desktop
Flags: needinfo?(emilio)
Product: Core → Web Compatibility

Shipping CSS zoom requires to remove -moz-transform from stylesheets.
That's generally fine, however we've seen a bunch of regressions due to
sites doing broken feature detection in JS (see bugs mentioned in the
patch).

It seems like exposing MozTransform in CSSStyleDeclaration is a
requirement, for some pages.

We could expose it conditionally with some sort of reverse origin trial
or what not, but given the amount of regressions only on Nightly, and
that this is harmless if you do proper feature detection, I think I'd
rather expose it unconditionally, rather than playing whack-a-mole
fixing pages after the fact.

Note that this change currently only affects behavior on Nightly,
because on other release channels -moz-transform is enabled right now.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d92146952904
Expose MozTransform in CSSStyleDeclaration unconditionally. r=jwatt

Backed out for causing wpt failures in CSS-supports-CSSStyleDeclaration.html

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | /css/css-conditional/js/CSS-supports-CSSStyleDeclaration.html | -moz-transform: _camel_cased_attribute v. CSS.supports - assert_equals: expected true but got false
    TEST-UNEXPECTED-FAIL | /css/css-conditional/js/CSS-supports-CSSStyleDeclaration.html | -moz-transform: _dashed_attribute v. CSS.supports - assert_equals: expected true but got false
Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/de35cb5de975
Expose MozTransform in CSSStyleDeclaration unconditionally. r=jwatt
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/43289 for changes under testing/web-platform/tests

Verified as fixed on the latest Nightly 122.oa1 on Ubuntu 22.04 x64, macOS 11.7, and Windows 10.

Upstream PR merged by moz-wptsync-bot
Status: RESOLVED → VERIFIED
Duplicate of this bug: 1861828
Component: Desktop → DOM: Bindings (WebIDL)
Product: Web Compatibility → Core
Target Milestone: --- → 122 Branch
Duplicate of this bug: 1864970
Duplicate of this bug: 1860424
Regressions: 1869119
Regressions: 1879746
Regressions: 1879769
Depends on: 1886134
Regressions: 1897120
Regressions: 1903265
No longer regressions: 1903104
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: