[wp-trac] [WordPress Trac] #22019: Twenty Ten - wrong math in style.css rem example

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 27 17:46:38 UTC 2012


#22019: Twenty Ten - wrong math in style.css rem example
-----------------------------+---------------------------
 Reporter:  TomasM           |       Type:  enhancement
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Bundled Theme
  Version:  trunk            |   Severity:  normal
 Keywords:  dev-feedback     |
-----------------------------+---------------------------
 22      $rembase:     14;
 23      $line-height: 24;
 24
 25      ---------- Examples

 31      * Set a font-size and then set a line-height based on the font-
 size
 32              font-size: 16px
 33              font-size: 1.142857143rem; (16 / $rembase)
 34              line-height: 1.846153846; ($line-height / 16)

 line-height = $line-height: 24 / 16 = 1.5

 Or I'm wrong? How can we get 1.846153846?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22019>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list