- From: Etan Wexler <ewexler@stickdog.com>
- Date: Fri, 28 Nov 2003 15:41:33 -0800
- To: www-style@w3.org
- Cc: "Chris Moschini" <cmoschini@myrealbox.com>
Chris Moschini wrote to <mailto:www-style@w3.org> on 29 September 2003 in "[css21] Default HTML Style sheet needs updating" (<mid:1064856561.a6c4b580cmoschini@myrealbox.com>): > In the CSS2.1 Default HTML Style sheet: > > http://www.w3.org/TR/CSS21/sample.html > > It still says that CSS2.1 cannot fully express the presentation > of elements like img and frame. Yet CSS3 can, like so: > > img, object, applet, embed, iframe, frame, frameset > { > display:inline-block; > } That doesn't do justice to the typical presentation of frames. The following, using mechanisms from CSS 2.1 and from CSS 3 drafts, is closer to the legacy presentation. It gets the frame placement correct, but leaves out issues of border styling, scrolling, and resizability. frameset[rows]:not([cols]) { display: table; } frameset[rows]:not([cols]) > frame::outside { display: table-row; } frameset[cols]:not([rows])::outside { display: table; } frameset[cols]:not([rows]) { display: table-row; } frame { display: table-cell; } frameset[rows][cols] > * { /* This is a pathological case which violates the prose of the HTML 4.01 specification. Maybe somebody can devise rule sets to handle it. */ }
Received on Friday, 28 November 2003 18:40:13 UTC