Is there any spec specifying the default width/height of an IFrame?
Browsers I tested (FF, IE, Chrome) seem to use 300x150px but I couldn't find any spec on this. Should I ever come in the situation, can I rely on these values or should I always set width/height explicitly?
I found the answer on the dev-tech-layout mailing list -- it's part of the CSS spec. The default ratio is 2:1.
The default width of 300px is defined in the last paragraph of the CSS spec, section on the width of inline replaced elements.
The default height of 150px is defined in the last paragraph of the CSS spec, section on the height of inline replaced elements.
I would set the width and height explicitly to ensure consistent rendering across multiple browsers/platforms as there is no guarantee that every browser will implement the same default dimensions.