- From: fweth via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Oct 2024 11:22:47 +0000
- To: public-css-archive@w3.org
fweth has just created a new issue for https://github.com/w3c/csswg-drafts: == Inconsistent Soft Wrap Opportunities Between Browsers == Hi, I recently filed a [bug report](https://issues.chromium.org/issues/376084074) for Chromium about inconsistent line break behavior between Firefox and other browsers (imo FF is more reasonable). The issue is seen here: https://jsfiddle.net/xwceur0g/5/ I want that whenever the svg breaks into a new line, it takes the last word before with it, since there are no soft wrap opportunities (SWO) between the text and the svg (according to my logic). In FF this already works, in other browsers not. However, you can make it work in Chrome and Safari by introducing some text content in the `<a>` before the `<svg>`, e.g., `<a>&nobsp;<svg>...</svg></a>`. I find this unintuitive, as this would mean that the text content takes away a SWO, where according to my logic, text content should only ever add SWOs. So for example, `$nbsp;` means according to my logic "put a space here but don't change any SWOs" but the way Chrome and Safari act, it can also mean "put a space here and take away the SWO which existed here before". Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11109 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 30 October 2024 11:22:47 UTC