Open Bug 1558431 Opened 6 years ago Updated 3 years ago

unicode-bidi:plaintext behavior is unreliable on initial reflow

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

People

(Reporter: jfkthame, Unassigned)

References

Details

See testcase at https://codepen.io/anon/pen/RzwQPd. Note that in this testcase, the bug occurs on the first of the three examples, but not on the other two.

From bug 1557882 comment 3:

The issue only occurs on the initial reflow of the document; if something triggers a new reflow (e.g. try zooming the page in the browser with Ctrl-+, or use the style editor to tweak the width property of the enclosing div), then the Hebrew line jumps to its expected position.

A key factor appears to be the fact that the forced line-break is inside a <span> rather than at the top level of the block that's using unicode-bidi:plaintext. Without that span, or with the <br> lifted out of it (as in my second and third examples) I was unable to reproduce the problem.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.