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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

Attachments

(1 file)

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'.
Attached patch fixSplinter Review
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)
(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.
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 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+
> I don't think that's true, RE inheritance. Right, I was confused about the style context hierarchy in comment 0, sorry.
Flags: needinfo?(mats) → in-testsuite?
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
Did this fix possibly cause bug 1231004 ? It regressed either because of this or one of the other changes going into the same nightly.
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.

Attachment

General

Created:
Updated:
Size: