- From: Gérard Talbot via GitHub <sysbot+gh@w3.org>
- Date: Sat, 27 Nov 2021 23:05:50 +0000
- To: public-css-archive@w3.org
When the **`div#parent` is positioned relatively**, then it becomes the offsetParent of the `div#child` (`div#green-child` in my test). When the **`div#parent` is positioned statically**, then the `<body>` element becomes the offsetParent of the `div#child` (`div#green-child` in my test). So, the nearest (within containment hierarchy) positioned element acts as the offsetParent for an element. If there is no positioned element within the containment hierarchy, then the <body> element acts as the offsetParent for an element. I think I understand the given definition... albeit I do not quite understand the purpose of / or need to add ", relative to the initial containing block origin," run of text. -- GitHub Notification of comment by TalbotG Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1832#issuecomment-980803654 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 November 2021 23:05:52 UTC