W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2016

Re: [csswg-drafts] [cssom-view] Algorithm of `Element.offsetParent`

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Wed, 24 Aug 2016 00:11:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-241921197-1471997513-sysbot+gh@w3.org>
WebKit's code is here: 
https://trac.webkit.org/browser/trunk/Source/WebCore/rendering/RenderObject.cpp#L1869
We walk the parent chain looking for things that are positioned, with 
special casing for tables and things with zoom.

-- 
GitHub Notification of comment by smfr
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/409#issuecomment-241921197 
using your GitHub account
Received on Wednesday, 24 August 2016 00:12:03 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:22 UTC