mirror of
https://github.com/mozilla-firefox/firefox.git
synced 2026-06-14 11:03:31 -05:00
Use the creating a type from unit algorithm to validate the unit argument passed to the CSSUnitValue constructor. This completes the missing constructor validation step and allows invalid or empty units to throw a TypeError as required by the spec. Differential Revision: https://phabricator.services.mozilla.com/D305630