Open Bug 1400083 Opened 8 years ago Updated 3 years ago

@font-face leading to inconsistent height calculation

Categories

(Core :: Layout, defect, P3)

55 Branch
defect

Tracking

()

UNCONFIRMED
Tracking Status
firefox57 --- fix-optional

People

(Reporter: florian, Unassigned)

Details

Attachments

(2 files)

Attached file table-cell-001.html
I've found, while writing test cases for web-platform-tests, two cases of non deterministic layout, when reloading the page (or doing so with the dev tools open vs closed) randomly yields different results. 1) table-cell-001.html (you need the Ahem font to be to be installed for this test to work) Reloading the page will change the logical height of the second table cell randomly between 0 and the height needed to fit the content. Note that removinv the 2) line-height-007.html Reloading the page, or doing so with vs without the dev tools open, will randomly change the line height calculations. See also comments in the source, for seemingly unrelated things that appear to have an effect.
Attached file line-height-007.html
Note: reference to other tests in the comments of line-height-007.html refer to tests in this directory: https://github.com/frivoal/web-platform-tests/tree/line-height-experiments/css/css-line-height
(In reply to Florian Rivoal from comment #0) > Reloading the page will change the logical height of the second table cell > randomly between 0 and the height needed to fit the content. > > Note that removinv the Missing text here? Anyway, there's definitely a bug here, thanks a lot for reporting it! The reason why the @font-face rule may be needed is because finishing loading it may reflow the document, maybe covering the issue? There's at least another buggy table behavior I'm aware of, which is bug 1388898, though I doubt this one is the same issue... dbaron may of course have more background or ideas about this particular case.
> > Note that removinv the > Missing text here? Ooos, sorry. Note that removing the @font-face will stop the non-determinism, even though I can't figure out why it would make any difference.
Component: Untriaged → Layout
Product: Firefox → Core
Priority: -- → P3
Summary: nondeterministic layout bugs → @font-face leading to inconsistent height calculation
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: