- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Sat, 18 Mar 2023 22:40:50 +0000
- To: public-css-archive@w3.org
> Percentages in `width` compute as-is, not to a length. In this [testcase](https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cdiv%20style%3D%22width%3A%20400px%3B%20border%3A%20solid%20cyan%22%3E%0A%20%20%3Cdiv%20style%3D%22width%3A%2050%25%3B%20border%3A%20solid%20orange%22%3E%0A%20%20%20%20%3Cdiv%20style%3D%22width%3A%20inherit%3B%20border%3A%20solid%20magenta%22%3E%0A%20%20%20%20%20%20Lorem%20ipsum), `width: inherit` sees `50%` instead of the resolved width. You're right. I mixed up the resolved value from `getComputedStyle()` with the computed value. Because @fantasai already [changed the spec. to keep percentages unchanged](https://github.com/w3c/csswg-drafts/commit/d07c8c50bee37e7cdff14afdc90103f82629e2d5), I close this issue now. Feel free to re-open it if I missed anything. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8140#issuecomment-1475018514 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 18 March 2023 22:40:52 UTC