Open Bug 1361044 Opened 7 years ago Updated 2 years ago

stylo: We intentionally haven't implemented all the details of how -moz-force-broken-image-icon works in Gecko

Categories

(Core :: CSS Parsing and Computation, enhancement, P5)

enhancement

Tracking

()

Tracking Status
firefox57 --- wontfix

People

(Reporter: emilio, Unassigned)

References

(Blocks 1 open bug)

Details

The docs of this property say that only relevant values are zero and one.

Gecko accepts all integers as valid, yet it later computes it in a weird way (mod 256, basically).

For example, in Gecko:

 -moz-force-broken-image-icon: 23;

is both valid and computes to 23. Yet:

 -moz-force-broken-image-icon: 256;

is valid, too, but computes to _zero_.


We're going to implement it in a way that values other than zero or one are rejected at parse time. We think this is fine, because it's an internal property and the rest of values are not either documented nor tested (and behave just as "1").

We could reconsider that if needed, but the behavior is so bizarre that I'd prefer not having to.
Priority: -- → P5
No longer blocks: 1337166
Maybe we could consider unshipping the weird modulo thing and allowing values different from 0 and 1 from Gecko before 57?
status-firefox57=wontfix unless someone thinks this bug should block 57
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.