-
Notifications
You must be signed in to change notification settings - Fork 719
[css-inline-3] 'vertical-align: middle' on table cells #5234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
The CSS Working Group just discussed
The full IRC log of that discussion |
fantasai
added a commit
that referenced
this issue
Aug 13, 2020
fantasai
added a commit
that referenced
this issue
Aug 13, 2020
…top and middle are specified together. #5234
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
So...
vertical-align: middle
has special behavior on table cells: it causesalign-content: normal
to be treated ascenter
(similar to how thetop
andbottom
values triggerstart
andend
, respectively).Splitting 'vertical-align' into longhands means we have to map the behavior over from the longhands instead. Unfortunately since
middle
is an actual baseline (halfway between the alphabetic baseline and the ex-height) it's inalignment-baseline
whereastop
andbottom
are line-relative values that shift content but don't represent an actual baseline, and are therefore inbaseline-shift
. Which means it's possible to specifyalignment-baseline: middle; baseline-shift: top
. Need to define whether that's treated asvertical-align: top
orvertical-align: middle
. My suggestion is thattop
andbottom
take precedence, because that's what happens in inline layout as well (alignment baselines are ignored for alignment within the parent in favor of top/bottom alignment within the line box).The text was updated successfully, but these errors were encountered: