[Webkit-unassigned] [Bug 27160] Implement vw/vh/vm (viewport sizes) from CSS 3 Values and Units

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 31 07:18:51 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=27160





--- Comment #21 from Joe Thomas <joethomas at motorola.com>  2012-01-31 07:18:50 PST ---
(In reply to comment #20)

> Yes, current patch does not do that. In order to distinguish between relative viewport-width and relative viewport-height, I guess we need to add two different LengthTypes(since length does not have any info about CSSPrimitive type). Can we do it with one?

One new LengthType should be sufficient. And a new sub-category of relative viewport Lengths can be added.
> 
> Also, what would be the best way to get viewport size in Length Structure to convert the relative length to pixel length?

A new function argument can be added to the getter functions in Length. But that does not look nice. Any other better approach?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list