Closed
Bug 1224804
Opened 9 years ago
Closed 9 years ago
[css-align] Make ::-moz-table-outer inherit 'justify-self' too
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)
References
Details
Attachments
(1 file)
1.03 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
I saw that ::-moz-table-outer has align-self:inherit. Presumably because
the nsTableFrame is the primary frame and the outer frame's style inherits
from that IIRC. So we should do the same for 'justify-self'.
Assignee | ||
Comment 1•9 years ago
|
||
I removed the comment on 'align-self' because these properties are
universal now. I feel like removing the comment on 'order' too
because it's not just for tables that are flex/grid items really.
It's also needed for inheritance to work through <table> *regardless*
if the table is a flex/grid item or not. Should we remove that
comment too?
Attachment #8687535 -
Flags: review?(dholbert)
Comment 2•9 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #1)
> I feel like removing the comment on 'order' too
> because it's not just for tables that are flex/grid items really.
> It's also needed for inheritance to work through <table> *regardless*
> if the table is a flex/grid item or not.
I don't think that's true, RE inheritance. (If it were true, then this line of thinking would be true of *all* css properties, and we'd arguably need "all: inherit" here.)
IIRC :-moz-table-outer is special because it's a wrapper for the table (the parent in the frame tree), but it's a *child* in the style-context tree. So any properties on the table that its "real" parent cares about will need to be "inherited" up to the moz-table-outer wrapper, or else the "real" parent won't see those properties.
Comment 3•9 years ago
|
||
But anyway, getting back to inheritance in general -- these "inherit" statements don't matter for normal inheritance to the table's normal children, because ::-moz-table-outer isn't part of their style-system ancestry at all. (It's really a sibling, w/ no children, from a style-context perspective.)
Comment 4•9 years ago
|
||
Comment on attachment 8687535 [details] [diff] [review]
fix
Review of attachment 8687535 [details] [diff] [review]:
-----------------------------------------------------------------
Having said all that: I'm OK with these comments all going away (including the 'order' one) because it's clear that these are all properties that may matter to the "real" parent (for layout purposes), so it makes sense that they have to be included here.
So: r=me, with the 'order' comment removed as well if you like.
Attachment #8687535 -
Flags: review?(dholbert) → review+
Assignee | ||
Comment 5•9 years ago
|
||
> I don't think that's true, RE inheritance.
Right, I was confused about the style context hierarchy in comment 0, sorry.
Comment 7•9 years ago
|
||
backout bugherder |
Backed out for test_value_cloning.html bustage
https://hg.mozilla.org/integration/mozilla-inbound/rev/734a55000c77
Flags: needinfo?(mats)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(mats) → in-testsuite?
Comment 9•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Comment 10•9 years ago
|
||
Did this fix possibly cause bug 1231004 ? It regressed either because of this or one of the other changes going into the same nightly.
Comment 11•9 years ago
|
||
I don't think so. (I agree with Markus's guess in bug 1231004 comment 6.)
You need to log in
before you can comment on or make changes to this bug.
Description
•