Re: [csswg-drafts] [css-position] Interoperability issues with absolute positioning (#3952)

@MatsPalmgren I am a n00b so please help me understand. Consider this example:
```
<div id="parent">
  Some text
  <div id="child" style="position:absolute;  display: inline">
```

Applying section 9.7 of CSS 2 to `child`, `position:absolute` forces the computed value of `display` to `block`. Because of which an anon block box is needed around "some text". The children participate in a block formatting context.

However, when `position` is assumed `static`, then display computes to `inline` and then the anon block box is not needed because `parent` has only inline children. Also, `parent` now establishes an inline formatting context.

-- 
GitHub Notification of comment by hrj
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3952#issuecomment-533372239 using your GitHub account

Received on Friday, 20 September 2019 01:58:32 UTC