Re: [csswg-drafts] [css-sizing] Last remembered size when fragmented? (#7598)

I made the test like that because both Gecko and Blink do not fragment elements with `contain: size`: [testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0A%23wrapper%20%7B%0A%20%20column-width%3A%20100px%3B%0A%20%20width%3A%20max-content%3B%0A%20%20height%3A%20100px%3B%0A%7D%0A%23target%20%7B%0A%20%20contain%3A%20size%3B%0A%20%20width%3A%2050px%3B%0A%20%20height%3A%20150px%3B%0A%20%20background%3A%20orange%3B%0A%7D%0A%3C%2Fstyle%3E%0A%3Cdiv%20id%3D%22wrapper%22%3E%0A%20%20%3Cdiv%20id%3D%22target%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E).

But from https://github.com/w3c/csswg-drafts/issues/7598#issuecomment-1240028670 it can be fragmented by slicing the contents, so WebKit is not wrong.

I guess the test can be relaxed to only check `clientHeight` and `clientWidth` when the element has size containment.

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


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

Received on Wednesday, 28 December 2022 03:06:25 UTC