[wp-trac] [WordPress Trac] #22019: Twenty Twelve: wrong math in style.css rem example (was: Twenty Twelve - wrong math in style.css rem example)
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 27 17:51:30 UTC 2012
#22019: Twenty Twelve: wrong math in style.css rem example
---------------------------+------------------------------
Reporter: TomasM | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback |
---------------------------+------------------------------
Description changed by SergeyBiryukov:
Old description:
> 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?
New description:
{{{
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#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list