Open
Bug 1400083
Opened 8 years ago
Updated 3 years ago
@font-face leading to inconsistent height calculation
Categories
(Core :: Layout, defect, P3)
Tracking
()
UNCONFIRMED
| Tracking | Status | |
|---|---|---|
| firefox57 | --- | fix-optional |
People
(Reporter: florian, Unassigned)
Details
Attachments
(2 files)
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.
| Reporter | ||
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
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
| Reporter | ||
Comment 3•8 years ago
|
||
dbaron made some comments about table-cell-001 in https://github.com/w3c/web-platform-tests/pull/6969#pullrequestreview-62556277
Comment 4•8 years ago
|
||
(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.
| Reporter | ||
Comment 5•8 years ago
|
||
> > 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.
Updated•8 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Updated•8 years ago
|
status-firefox57:
--- → fix-optional
Priority: -- → P3
Summary: nondeterministic layout bugs → @font-face leading to inconsistent height calculation
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•