W3C home > Mailing lists > Public > www-style@w3.org > October 2011

[css3-values] 1/100 factor on vh/vw/vm units

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 12 Oct 2011 15:00:19 -0700
To: www-style@w3.org
Message-ID: <20111012220019.GA15937@pickering.dbaron.org>
A recent discussion that probably should have been on the public
included discussion of the 'vh', 'vw', and 'vm' (perhaps soon to be
rename to 'vmin' or removed) units.  It included examples in which
working group members did not notice that their examples were off by
a factor of 100 (using 0.5vh when 50vh was intended).

So I'd like to raise the general point:  css3-values defines a 'vh'
as 1/100 of the viewport height, and a 'vw' as 1/100 of the viewport
width, and 'vm' as the smaller of 'vh' or 'vw'.  I think this factor
of 1/100 is confusing given the names of the units, and the fact
that a bunch of WG members failed to notice this error might be a
sign that the spec is taking the wrong approach, and we should
eliminate the 1/100 bit and make a 'vh' be the height of the
viewport (and likewise for 'vw' and 'vm'/'vmin').


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Wednesday, 12 October 2011 22:00:53 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:05 UTC