- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 02 Aug 2017 14:41:56 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `percentage [max-]width|height and intrinsic sizes`. <details><summary>The full IRC log of that discussion</summary> <astearns> topic: percentage [max-]width|height and intrinsic sizes<br> <dbaron> github: https://github.com/w3c/csswg-drafts/issues/765<br> <tantek> TabAtkins: intrinsic size of some elements with a % width or height<br> <tantek> fantasai: special behavior that images and form controls have<br> <tantek> fantasai: if you specify their width as a %, then their min-content size is assigned as if 0 sized<br> <tantek> fantasai: so this behavior has not been spec'd anywhere and should be spec'd<br> <tantek> fantasai: the one open consideration, form controls did not do this for max-width, but images did. so images responded to max-width, but form controls didn't<br> <tantek> fantasai: TabAtkins and I decided to do min and max for both images and form controls<br> <tantek> fantasai: e.g. you hav especiied mx widht % on a form control. the form control is inside shrink-wrapped container, and the form conrol is affecting the size of the shrink-wrapped container<br> <tantek> fantasai: seems like a really obscure case and I haven't found any. there may be some out there<br> <tantek> fantasai: after talking with dbaron it seems that would be ok. want wg resolution to make changes to the spec<br> <fantasai> s/e.g./the only affected case would be/<br> <tantek> s/hav especiied mx widht/have specified max width<br> <tantek> astearns: I want to see the changes in the spec so we can see them in the spec<br> <tantek> astearns: and discuss them there<br> <tantek> dbaron: to be clear, the thing that browsers do today isn't in the spec<br> <tantek> dbaron: tab & fantasai are proposing something simpler but still fairly consistent<br> <tantek> astearns: are you interested in changing your behavior?<br> <tantek> dbaron: willing to. have been running with a patch and haven't found anything broken yet<br> <tantek> dbaron: other part hard here is defining replaced elements<br> <tantek> TabAtkins: apparently a commit went in today to HTML to define them<br> <tantek> fremy: on some we are even more inconsistent<br> <tantek> fantasai: for the sake of sanity we'd like to have ...<br> <TabAtkins> https://github.com/whatwg/html/pull/2857 PR to define replaced elements<br> <fantasai> s/.../consistency/<br> <tantek> fremy: e.g. video element with a slider<br> <tantek> fremy: all browser but edge, the default size of the contol<br> <tantek> fremy: meanwhile in edge, default size of 0<br> <fantasai> Proposed text is "However, in the case of a replaced box with a percentage-based width/max-width/height/max-height, the percentage is resolved to zero when calculating the min-content contribution in the corresponding axis."<br> <fantasai> in https://drafts.csswg.org/css-sizing/#intrinsic-contribution<br> <tantek> fantasai: we're not ...<br> <fantasai> s/fantasai: we're not ...//<br> <tantek> fremy: there was a slider for the video element which was sized with max-width %<br> <tantek> fremy: in edge since do we apply ... to this size, the minimum size was ... px, and the author provided size was 41px<br> <tantek> fremy: in other browsers, they just use the normal default size of the control which was bigger than 41px<br> <tantek> fremy: I do believe the edge behavior is what the author wanted<br> <tantek> astearns: if we take this change then ...<br> <tantek> fremy: all browsers will behave as edge is behaving<br> <fremy> beam.pro<br> <tantek> astearns: any objections to taking this change?<br> <tantek> dbaron: FWIW I just checked the WHATWG HTML dfn and it's not the one we want<br> <tantek> dbaron: it's the stricter one<br> <fremy> well, the website has been redesigned<br> <tantek> dbaron: it doesn't count form elements<br> <tantek> dbaron: only images, iframes, input type=image<br> <dbaron> and a bunch of other things<br> <tantek> astearns: I'm hearing no objection to making the change<br> <fantasai> I think we need to add "(including form controls)" here<br> <tantek> astearns: RESOLVED: take the change "However, in the case of a replaced box with a percentage-based width/max-width/height/max-height, the percentage is resolved to zero when calculating the min-content contribution in the corresponding axis."<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/765#issuecomment-319693652 using your GitHub account
Received on Wednesday, 2 August 2017 14:41:57 UTC