W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2011

[whatwg] Replaced content layout differences for limited quirks mode

From: Elliott Sprehn <esprehn@gmail.com>
Date: Wed, 21 Dec 2011 15:19:42 -0800
Message-ID: <CAPJYB1hMF90vLB_KS=baviQOvJ-CmQY65EBYmfqL3YOoWn8HXA@mail.gmail.com>
I recently stumbled upon an issue where it appears that limited quirks
mode (almost standards) and standards mode compute the size of
replaced content (iframes, objects, images) differently. This is
interesting because the documentation for almost standards mode states
that it only changes the way images are placed in tables.


Test cases:

(almost standards mode)
http://elliottsprehn.com/personal/iframe-doctypes/html4-strict.html (standards)
http://elliottsprehn.com/personal/iframe-doctypes/html5.html (standards)

This means switching to an HTML5 doctype can add spaces around iframes
that were otherwise invisible because of a width and height of 0. This
reproduces in Webkit and Gecko and probably other browsers.

Is this behavior documented anywhere?

- Elliott
Received on Wednesday, 21 December 2011 15:19:42 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC