W3C home > Mailing lists > Public > www-style@w3.org > January 2016

[css-round-display] Percentages of 'polar-distance' when origin is not the center of the containing block

From: Jihye Hong <jh.hong@lge.com>
Date: Thu, 21 Jan 2016 16:01:47 +0900
To: "'www-style list'" <www-style@w3.org>
Message-ID: <009001d15419$981fc6f0$c85f54d0$@hong@lge.com>
There is an action item[1] of CSS Round display from the last F2F meeting in
Sapporo. It is about clarifying 'polar-distance' percentages when origin is
not the center.

There could be 2 options for the definition of percentages : 
	
	1. relative to the shortest distance between the origin of polar
coordinates and edges of containing block.
	2. relative to the distance from the origin of polar coordinates to
edges of containing block.

Because of the fact that origin is not the center, the distance between the
origin of polar coordinates and the edge of containing block vary according
to the 'polar-angle' value.

In the first option, the 'polar-distance' value given by percentages is
constant no matter which value the 'polar-angle' has.
This case is satisfied with the directional consistency and avoiding
circular dependency.

Otherwise, in the second option, the 'polar-distance' value given by
percentages is affected by the value of 'polar-angle'.
I think this may be useful for general usecases such as aligning elements in
the egg-shape.

Which could be more reasonable definition for 'polar-distance' percentages
when origin is not the center?

[1] https://www.w3.org/Style/CSS/Tracker/actions/731
[2] https://drafts.csswg.org/css-round-display/#polar-distance-property

Thanks,
Jihye
Received on Thursday, 21 January 2016 07:02:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:35 UTC