Use of "-moz-border-radius" CSS property in Standards Mode
In working on a project, I was using "-moz-border-radius" to add a rounded border to some tables. I added the correct doctype and then suddenly the rounded borders disappeared. It would seem that standards mode requires that "px" be specified whereas in quirks mode, it determined the value correctly.
Eg: {-moz-border-radius:20} doesn't work in standards mode but {-moz-border-radius:20px;} does.
Conversation
surely Mozilla is being generous in ever doing anything with {-moz-border-radius:20}
If there are no units specified, how would the 20 be interpreted -- as px, em, or inches?
Standards mode has this right. The only value for which units may be omitted is zero
You'd be correct Claire. My CSS coding has certainly improved from 2003 and I would never (intentionally) specify a value without a unit of measurement.