Re: [csswg-drafts] [css-ruby] ruby base container as containing block (#6324)

"
If the box has position: absolute:
    The containing block is established by the nearest ancestor box that establishes an absolute positioning containing block, in the following way:
(...)
    If the ancestor is an inline box,
        the containing block is formed by the block-start and inline-start content edges of the first box fragment of the ancestor, and the block-end and inline-end content edges of the last box fragment of the ancestor. 
Note: If the ancestor breaks across a line, the 'start' position might more end-ward than the 'end' position.
"
coming from
[CSS Positioned Layout 3, 
§2.1. Containing Blocks of Positioned Boxes](https://www.w3.org/TR/css-position-3/#def-cb)
and so, that includes cases where the inline element is split across multiple lines.

I have old CSS2.x tests on this:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/containing-block-017-GT.html
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/containing-block-017-GT2.html
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/containing-block-031.html
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/containing-block-032.html

I remember reporting that some of tests in the CSS2.1 test suite regarding an abs. pos. inline inside a rel. pos. inline had various problems:
https://lists.w3.org/Archives/Public/public-css-testsuite/2012Mar/0008.html
Other tests may be weak:
http://test.csswg.org/suites/css21_dev/20110323/html4/containing-block-013.htm


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 30 May 2021 13:23:47 UTC