Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla Support में खोजें

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why a img tag with negative width value don't render itself on ff?

  • 1 प्रत्युत्तर दें
  • 2
  • 2 views
  • के द्वारा अंतिम प्रतियुतर Shadow110

more options

the HTML spec say so that the width and height attributes must be positive integers, but have no mention on what browser should do if it's a negative value. Other browsers ignore the attribute with a invalid attribute and render the tag with the width default value. ``````

the HTML spec say so that the width and height attributes must be positive integers, but have no mention on what browser should do if it's a negative value. Other browsers ignore the attribute with a invalid attribute and render the tag with the width default value. ```<img src="img.png" width="-1">```

चुने गए समाधान

W3C (World Wide Web Consortium in charge of rules and practises web browsers and web pages is what Mozilla follows. Firefox is playing rather strict these days. May find it breaks in a update for another browser sooner or later.

If it does not pass https://validator.w3.org/ for HTML or https://jigsaw.w3.org/css-validator/ for CSS then you are doing it wrong.

Making exceptions to rules is not abiding by the rules.

You'll have to hit up some coding places/forums for help. I do some but not enough to help you.

Note : Firefox 57 Quantum release date Nov 14th https://www.mozilla.org/en-US/firefox/quantum/ Note : Legacy Extensions will be disabled and or removed.

Please let us know if this solved your issue or if need further assistance.

संदर्भ में यह जवाब पढ़ें 👍 1

All Replies (1)

more options

चयनित समाधान

W3C (World Wide Web Consortium in charge of rules and practises web browsers and web pages is what Mozilla follows. Firefox is playing rather strict these days. May find it breaks in a update for another browser sooner or later.

If it does not pass https://validator.w3.org/ for HTML or https://jigsaw.w3.org/css-validator/ for CSS then you are doing it wrong.

Making exceptions to rules is not abiding by the rules.

You'll have to hit up some coding places/forums for help. I do some but not enough to help you.

Note : Firefox 57 Quantum release date Nov 14th https://www.mozilla.org/en-US/firefox/quantum/ Note : Legacy Extensions will be disabled and or removed.

Please let us know if this solved your issue or if need further assistance.