> On Mar 29, 2017, at 8:06 AM, Crest Christopher <crestchristop...@gmail.com> 
> wrote:
> 
> Correct me if I'm wrong but wouldn't the following be 4.4em if 2.2vw is added 
> to the font-size of 2.2em ?
> 
> calc( 2.2em + 2.2vw );.

NO. The `vw` unit is short for `viewport-WIDTH` [1]. Per spec text: “vw unit: 
Equal to 1% of the width of the initial containing block.”

Or perhaps I should qualify my answer:

It _is_ possible that the **computed** value of 4.4em equals the computed value 
of `calc(2.2em + 2.2vw)`, if
* the initial containing block (window) is a certain width,
* the cascade doesn’t mess up with your calculations,
* the stars align
* the stock market crashed
* ….
* ……
* my cat sleeps more than 10cm away from my keyboard

In other words, almost certainly never.


[1] https://drafts.csswg.org/css-values-3/#viewport-relative-lengths

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/





______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to