Enable 'zoom' in Nightly and remove '-moz-transform' (to avoid web compat issues when supporting 'zoom')
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: zcorpan, Assigned: emilio)
References
(Regressed 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(3 files, 1 obsolete file)
See https://bugzilla.mozilla.org/show_bug.cgi?id=390936#c104
This should probably be a pref so it's possible to test with and without support for -moz-transform
and so it's easy to change direction if it turns out it's less bad to support -moz-transform
.
Assignee | ||
Comment 1•1 year ago
|
||
It's already a pref (layout.css.prefixes.transforms
)
Reporter | ||
Comment 2•1 year ago
|
||
OK nice! Then this bug is about flipping the default value.
Assignee | ||
Comment 3•1 year ago
|
||
This probably needs a couple test fixes.
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
We want to disable prefixed transforms to see if it's feasible to ship
zoom without them.
Make tests use un-prefixed transforms.
Assignee | ||
Comment 5•1 year ago
|
||
For reference I used the following sed / grep combination for most of the changes above:
function replace() {
echo "replacing $1 to $2"
rg -l "$1" | xargs sed -i -E -e s/"$1"/"$2"/g
}
replace '\-moz-perspective-origin:' 'perspective-origin:'
replace '\-moz-transform:' 'transform:'
# etc
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
Depends on D189760
Assignee | ||
Comment 7•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Comment 9•1 year ago
|
||
bugherder |
Comment 10•1 year ago
|
||
The severity field is not set for this bug.
:dshin, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Comment 11•1 year ago
|
||
Comment 12•1 year ago
|
||
Backed out for causing failures on backface-visibility-1b.html
- backout: https://hg.mozilla.org/integration/autoland/rev/1bfcea9b6627b3f166edbc82abe3a90f62c4a417
- push: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&selectedTaskRun=KF77GYcQQA6Csmolkm925g.0&revision=facd9f92e1f57dbadfba1397e8b2463c53729640
- failure log: https://treeherder.mozilla.org/logviewer?job_id=433092486&repo=autoland&lineNumber=10074
Comment 13•1 year ago
•
|
||
Also failing:
- TEST-UNEXPECTED-FAIL | browser/base/content/test/static/browser_parsable_css.js | Unused allowlist item: {"sourceName":"/\bscrollbars\.css$/i","errorMessage":"/Unknown property ‘zoom’/i","isFromDevTools":false} -
- TEST-UNEXPECTED-FAIL | /resize-observer/svg.html | test17: observe g:rect content, border and device-pixel-content boxes with zoom - assert_equals: expected 50 but got 4.6833343505859375
Assignee | ||
Updated•1 year ago
|
Comment 14•1 year ago
|
||
Comment 15•1 year ago
|
||
Comment 16•1 year ago
|
||
Comment 17•1 year ago
|
||
Comment 18•1 year ago
|
||
Comment 19•1 year ago
|
||
bugherder |
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 20•1 year ago
|
||
Code like the one from comment 7 seems reasonable. Let's try to disable
prefixed transitions along with prefixed transforms in order to minimize
the compat fallout from CSS zoom.
While I was at it I also fixed the prefixed animation entries in the
property database and crashtests. But those aliases remain enabled.
Comment 21•1 year ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #20)
Created attachment 9360757 [details]
Bug 1855763 - Remove transition prefixes from nightly too. r=zcorpan,#layout
Was this patch supposed to be for bug 1861730?
Comment 22•1 year ago
|
||
Comment on attachment 9360757 [details]
Bug 1855763 - Remove transition prefixes from nightly too. r=zcorpan,#layout
Revision D192129 was moved to bug 1861730. Setting attachment 9360757 [details] to obsolete.
Assignee | ||
Comment 23•1 year ago
|
||
Yeah, thanks!
Assignee | ||
Updated•1 year ago
|
Comment 24•1 year ago
|
||
Docs changes for this can be tracked in the following GitHub issue: https://github.com/mdn/content/issues/29785
Updated•1 year ago
|
Comment 25•4 days ago
|
||
For the record, we ended up reverting the "disable -moz-transform" part of this bug -- we reenabled moz-transform styling (about:config pref layout.css.prefixes.transforms
in a nightly-only way in bug 1901497 (as part of Nightly 130) and in release in bug 1886134 (as part of Firefox 133).
Comment 26•4 days ago
|
||
(adjusting bug summary to make the part-that-stuck [enabling 'zoom'] more up-front in the summary)
Description
•