Re: [csswg-drafts] [css-pseudo] Should ::first-line include markers? (#4506)

There's a difference in how `::first-letter/line` boxes are created though. A `::first-letter` box is created "on the inside" wrapping just the text and becomes a descendant of any existing boxes on the line, whereas a `::first-line` box is "on the outside" wrapping all boxes on the line. So for that reason I'm leaning towards Gecko's behavior making more sense here.

Also, if there are any `display: inline list-item` children there may be multiple `::marker` boxes on the first line, so it would be a bit tricky to fragment the `::first-line` to avoid those. I guess we could make a special rule to just skip over an inside marker of the block itself to avoid that complexity, but that seems a bit arbitrary to me and it also makes the assumption that an inside marker box is the first box on the line which may not be true if we add new pseudos in the future.

Excluding the `::marker` also gives surprising results in some cases. For example, with `::first-line { font-size: 400% }` I would expect an inside marker to also use that font-size. Maybe I'm just used to how Firefox handles it, but I'm not convinced Chrome's behavior is necessarily better.

GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at using your GitHub account

Received on Monday, 11 November 2019 15:10:29 UTC