RESOLVED FIXED259036
Inline elements bug when using text-box-trim & text-box-edge.
https://bugs.webkit.org/show_bug.cgi?id=259036
Summary Inline elements bug when using text-box-trim & text-box-edge.
Nilesh Prajapati
Reported 2023-07-09 14:15:08 PDT
Created attachment 466994 [details] Html file demonstrating inline element issue when using text-box-trim & text-box-edge. Hi Webkit Title: inline elements bug when using text-box-trim & text-box-edge. CSS: text-box-trim & text-box-edge I noticed an issue with the CSS text-box-trim (& text-box-edge) when inlining other elements in the paragraph tag. Issue: An alignment issue on the y-axis when inline elements in the paragraph tag. Attachment: I have included a project file of the issue that contains a subset of HTML elements (q, a, b, code, i) wrap around a paragraph tag. Thanks, Nilesh
Attachments
Html file demonstrating inline element issue when using text-box-trim & text-box-edge. (1.36 KB, text/html)
2023-07-09 14:15 PDT, Nilesh Prajapati
no flags
WebKit ToT vs Other Browsers (638.32 KB, image/png)
2023-07-15 09:00 PDT, Ahmad Saleem
no flags
Ahmad Saleem
Comment 1 2023-07-15 09:00:54 PDT
Created attachment 467051 [details] WebKit ToT vs Other Browsers
Radar WebKit Bug Importer
Comment 2 2023-07-16 14:16:17 PDT
Simon Fraser (smfr)
Comment 3 2025-12-11 11:40:50 PST
Nilesh, please add some details for why you think this is fixed.
Nilesh Prajapati
Comment 4 2025-12-12 00:58:51 PST
Hi Simon From my own internal testing, this is working as expected and matches the behaviour in Chrome. https://codepen.io/nileshprajapati/pen/RweKdmw The "HTML file demonstrating inline element..." file in the attachment is using the old trim value and should be using trim-both. The only issue I have come across is that if you apply the text box to only the paragraph element, the nested child element (i.e. bold element) does not inherit the text box property (text box needs to be applied to each child element directly). Example: <p class="text-box"> Text <b>Bold</b> Text <- inherit text-box from the parent paragraph element. </p> Thanks, Nilesh
Note You need to log in before you can comment on or make changes to this bug.