[Webkit-unassigned] [Bug 180633] Wrong position for orthogonal positioned element with writing-mode: vertical-rl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 29 03:08:36 PDT 2021


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

--- Comment #7 from zsun at igalia.com ---
(In reply to Javier Fernandez from comment #6)
> Comment on attachment 427138 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=427138&action=review
> 
> > Source/WebCore/rendering/RenderBox.cpp:4454
> > +        logicalLeftPos = containerLogicalWidth - computedValues.m_extent - logicalLeftPos;
> 
> Why in this case we don't need to consider the border ?

For replaced, we have computedValues.m_extent = computeReplacedLogicalHeight() + borderAndPaddingLogicalHeight();/computedValues.m_extent = computeReplacedLogicalWidth() + borderAndPaddingLogicalWidth();

So I assume that borders and paddings have already been included in computedValues.m_extent. In later calculation, they are taken out together as part of the logicalHeightValue/logicalWidthValue which is the corresponding value of computedValues.m_extent.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210429/586fde12/attachment.htm>


More information about the webkit-unassigned mailing list