[webkit-dev] getComputedStyle does not handle over-constrained properties correctly

김덕진 dj0152 at gmail.com
Fri May 27 05:59:24 PDT 2016


I'm working on blink engine as deokjin81.kim at samsung.com.
And I have a question about implementation plan for getComputedStyle.
As I know, getComputedStyle does not handle over-constrained properties
So I implemented it(
https://bugs.chromium.org/p/chromium/issues/detail?id=601118) according to
on blink engine.

Below paragraphs(from spec) describe detail operation to handle
over-constrained properties.

If neither 'left' nor 'right' is 'auto', the position is over-constrained,
and one of them has to be ignored. If the 'direction' property of the
containing block is 'ltr', the value of 'left' wins and 'right' becomes
-'left'. If 'direction' of the containing block is 'rtl', 'right' wins and
'left' is ignored.

The 'top' and 'bottom' properties move relatively positioned element(s) up
or down without changing their size. 'Top' moves the boxes down, and
'bottom' moves them up. Since boxes are not split or stretched as a result
of 'top' or 'bottom', the used values are always: top = -bottom. If both
are 'auto', their used values are both '0'. If one of them is 'auto', it
becomes the negative of the other. If neither is 'auto', 'bottom' is
ignored (i.e., the used value of 'bottom' will be minus the value of 'top').

I would like to know Webkit  have any plan for this.

Thank you in advance,
Deokjin Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20160527/34eab38b/attachment.html>

More information about the webkit-dev mailing list