W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2016

[csswg-drafts] [css-align] Overconstrained Baseline Content-Alignment with box-sizing:border-box and a max-height?

From: MatsPalmgren via GitHub <sysbot+gh@w3.org>
Date: Fri, 20 May 2016 22:24:29 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-156061931-1463783068-sysbot+gh@w3.org>
MatsPalmgren has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-align] Overconstrained Baseline Content-Alignment with 
box-sizing:border-box and a max-height? ==
https://drafts.csswg.org/css-align-3/#baseline-align-content
"minimum necessary extra space is added between its start (end) 
content
edge and its alignment subject’s edge to align its alignment baseline
in that axis"

What should happen when the alignment subject has 
box-sizing:border-box
and a max-[width|height] in the relevant axis, and adding "minimum
necessary extra space" to meet the baseline would exceed the given
max size?

I can't find anything in the CSS Align spec that says anything about
this case.

I can think of a few alternatives:
A. add padding up to the max size and then add margin after that
   (honor both baseline alignment and the given max-size, but not
    align-self)
B. add padding up to the max size
   (honor the given max-size and align-self, but not baseline
    alignment)
C. ignore the max size
   (honor align-self and baseline alignment, but not the max size)

I think I prefer A, and that B is acceptable, but C is unacceptable.


Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/130 using your GitHub 
account
Received on Friday, 20 May 2016 22:24:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:58 UTC