Closed Bug 1593009 Opened 5 years ago Closed 5 years ago

CSS "zoom: 0" behaves differently from other browsers

Categories

(Core :: CSS Parsing and Computation, defect, P3)

72 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox-esr68 --- unaffected
firefox70 --- unaffected
firefox71 --- unaffected
firefox72 --- fixed

People

(Reporter: nanto, Assigned: emilio)

References

(Regression, )

Details

(5 keywords)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0

Steps to reproduce:

Visit https://jsfiddle.net/h2eq385a/ .

Actual results:

No text is shown in Firefox 72.0a1.

This behavior causes a web compat issue https://github.com/webcompat/web-bugs/issues/43303 .

Expected results:

A text "Hello, world." is shown in IE, Edge and Chrome.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Priority: -- → P3

Thanks for filing this. We're not going to ship bug 1589766 without fixing this.

Both of the regressions that have been reported from bug 1589766 are due to zoom: 0, we may want to explicitly parse that as invalid, or something like that.

Regressed by: 1589766

Seems like zoom: 0 does nothing at all, shrug.

Assignee: nobody → emilio

This matches the WebKit implementation, and is clearly a violation of the rules
we generally use for ranges in CSS.

But it seems to be depended-on legacy behavior, see the linked WebKit bug, this
bug, and bug 1593317.

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/549a41d155a4
Make zoom: 0 mean the same as zoom: 1. r=heycam
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: