Open Bug 2047061 Opened 5 months ago Updated 5 months ago

Should we skip empty line when computing inline containing block rect

Categories

(Core :: Layout: Positioned, defect)

defect

Tracking

()

People

(Reporter: TYLin, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:0

Attachments

(1 file)

Filed after reading Bug 2044288 Comment 6. This bug gathers more inline as abspos containing block rendering difference between Firefox and Google Chrome.

In ComputeInlineAbsoluteCBRect((), we simply grab the first and last inline continuations, and use them to compute the inline containing block rect. This behavior aligns with the current spec https://drafts.csswg.org/css-position-3/#absolute-cb

However, it seems Google Chrome will skip non-rendering <br> (or empty line?), and find the first (and/or last) non-empty inline frame or block frame to form the inline containing block rect. They might implement something that has been discussed in https://github.com/w3c/csswg-drafts/issues/8284, which is not yet reflected in the spec.

Webkit's rendering is more like us.

Given the resolution in https://github.com/w3c/csswg-drafts/issues/8284 is not reflected in the spec, and Webkit's rendering is mostly aligned with us, the webcompat pressure is probably not high.

Daniel, what do you think? Any other thoughts?

Flags: needinfo?(dholbert)

Thanks for tracking down that spec discussion! I thought I recalled this coming up recently-ish.

The spec issue you linked indicates that there are still some details to be worked out. Given that we match Safari right now and we're not aware of many sites depending on Chrome's behavior right now, I'd recommend sitepatching the one known-affected site and waiting on the spec text to be finalized (or at least better hashed out) before starting work here.

Flags: needinfo?(dholbert)
User Story: (updated)
User Story: (updated)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: