[Webkit-unassigned] [Bug 263698] New: A floating element can cause the following element’s text-indent to fail

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 25 17:23:24 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=263698

            Bug ID: 263698
           Summary: A floating element can cause the following element’s
                    text-indent to fail
           Product: WebKit
           Version: Safari 17
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bya at 180g.co
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

Created attachment 468341

  --> https://bugs.webkit.org/attachment.cgi?id=468341&action=review

HTML with paragraphs that should all display a text-indent

In the attached HTML, each paragraph should have a text-indent of 1.5em. 

However, in Safari 17.1 on Sonoma, the paragraph that follows the floating element (seen in lightgray) does not actually indent. Even when you change the floating element’s width to 89%, which pulls the first word of the following paragraph up, there is no text indent. You have to get to a width of 81% before the text-indent has any effect. This is not the case in Chrome and Firefox, where the text-indent always has an effect, regardless of the presence of a floating element immediately before the paragraph with the indent.

I can maybe understand why the text-indent doesn’t work for widths between 82-89%: there isn’t enough room for both the first word and the text indent. In that case, though, I’d argue that the word shouldn’t be brought up. In fact, that’s also what Chrome and Firefox do.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231026/de3d3873/attachment.htm>


More information about the webkit-unassigned mailing list