[wp-trac] [WordPress Trac] #24306: Twenty Thirteen: border-box box sizing will break many plugins

WordPress Trac noreply at wordpress.org
Tue Jun 11 12:20:40 UTC 2013


#24306: Twenty Thirteen: border-box box sizing will break many plugins
---------------------------+----------------------
 Reporter:  professor99    |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Bundled Theme  |     Version:  trunk
 Severity:  normal         |  Resolution:  wontfix
 Keywords:                 |
---------------------------+----------------------

Comment (by professor99):

 Replying to [comment:36 professor99]:

 > The final issue of handling CSS for three different box models due to
 IE7 and IE8 (which plugins will inherit) is also a separate but related
 issue (comment 29). Use of a compatibility library such as ie9.js or other
 javascript to conform min-width, max-width, and box-sizing could be a
 solution. Of course you could always just live with the mess or toss it
 for a pad with content-box layout.

 Had a look at ie9.js and it has too many bugs to be usable. Coding
 javascript to parse and fix css in this regard isn't easy and isn't worth
 the trouble. Seems we are stuck with separate stylesheets if we use
 universal border-box.

 One thing I found out while testing ie9.js is that IE7 and IE8 ignore the
 universal selector. Results as follows. Note the class 'ie8' is added to
 the 'html' tag for Internet Explorer 8.
 {{{
 * { ... }  /* IGNORED BY IE */
 *, .ie8 * { ... } /* ALL IGNORED BY IE */
 .ie8 *, * { ... } /* WORKS FOR IE8 BUT NOT FOR FIREFOX */

 If you want to use this for IE8 the following works
 .ie8 * { ... } /* WORKS FOR IE8 */
 }}}
 So given there is no easy way out of having to deal with three different
 box models due to support of IE7 and IE8 I think the use of universal
 border-box here was a silly decision to start with. Furthermore forcing it
 on everyone else by not constraining it to this theme is an appalling
 decision.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24306#comment:38>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list