test_dynamic_reflow_root_disallowal.html improvements
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Assignee | ||
Comment 1•5 years ago
|
||
The flex item tests in this file are completely broken...
First, there's a typo in the flex container style when concatenating:
"... teal" + containerSizeDecl since you end up with
"... tealinline-size:..." etc.
Second, none of the tests actaully test anything at all, which
you can see by removing the "+ subtest.candStyle" part on the
reflow root candidate -- the test still pass! The reason for
that is that its child (inner) has a solid purple border so when
changing its size it will render differently and make the test
pass regardless of any change that we intended to test.
After fixing those two bugs it turns out that two of the subtests
don't produce a rendering change at all, so those tests are bogus
and needs to be rewritten. (I'm commenting them out for now.)
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D29324
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
BTW, good news about the grid-column/row-start/end
properties though...
They return nsChangeHint_AllReflowHints
:
https://searchfox.org/mozilla-central/rev/b756e6d00728dda4121f8278a744381d8643317a/layout/style/nsStyleStruct.cpp#1520
which contains nsChangeHint_ReflowChangesSizeOrPosition
:
https://searchfox.org/mozilla-central/rev/b756e6d00728dda4121f8278a744381d8643317a/layout/base/nsChangeHint.h#387
which always causes a reflow of the parent:
https://searchfox.org/mozilla-central/rev/b756e6d00728dda4121f8278a744381d8643317a/layout/base/nsChangeHint.h#192
So it should be possible to make grid items reflow roots as long as all
item properties like that include the ReflowChangesSizeOrPosition
bit.
We still can't make subgrids reflow roots of course, but I'll fix that
separately...
Assignee | ||
Comment 5•5 years ago
|
||
nsChangeHint_ReflowChangesSizeOrPosition
[...] which always causes a reflow of the parent
Well, that's according to its documentation at least...
I haven't checked if we try to optimize that away at some point though.
Pushed by mpalmgren@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3de2f935e2d2 part 1 - Fix broken flex layout tests. r=dholbert https://hg.mozilla.org/integration/mozilla-inbound/rev/a5c14dc63aa6 part 2 - Add some grid layout tests. r=dholbert
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/3de2f935e2d2
https://hg.mozilla.org/mozilla-central/rev/a5c14dc63aa6
Description
•