15:58:37 RRSAgent has joined #css 15:58:41 logging to https://www.w3.org/2024/11/07-css-irc 15:58:41 RRSAgent, make logs Public 15:58:43 Meeting: Cascading Style Sheets (CSS) Working Group Teleconference 15:59:11 topic Nov 7 form controls agenda: https://github.com/whatwg/html/issues/10730 16:02:02 castastrophe has joined #css 16:03:32 masonf has joined #css 16:03:56 present+ 16:04:02 present+ 16:04:20 github-bot, take up https://github.com/w3c/csswg-drafts/issues/10909 16:04:21 Topic: [css-ui] Colors to use for appearance:base `` 16:06:10 OK, I'll post this discussion to https://github.com/w3c/csswg-drafts/issues/10857. 16:07:04 jarhar: have a list of additional properties proposed for the UA stylesheet. Think we should just go through them one-by-one. 16:07:23 present+ 16:08:08 first rule: padding: 025em 16:08:20 without this rule, the text in the button would stick to the borders, this centers it 16:09:07 there is a caveat that it changes to 0 if the developer provides a child button element. That is there because if the the developer provides it, then we should just use that button and not add on extra box deccoration 16:09:42 emilio: the select has a border right? 16:09:52 jarhar: going to propose to remove the border actually 16:10:05 jarhar: that way you don't have two borders 16:10:12 jarhar: this was discussed on a separate issue with tim 16:10:36 q+ 16:10:45 ack fantasai 16:10:47 annevk has joined #css 16:10:50 q+ 16:10:56 zcorpan has joined #css 16:11:12 fantasai: what is the box model we're trying to style in this case? what boxes exist and what formatting context does it have? Is the select a bock box or a flexbox. 16:11:33 jarhar: display: inline-block should answer that question (there is a proposed UA rule for it) 16:11:53 fantasai: and it directly contains text? and if there is a provided button it shows the button? 16:12:06 fantasai: there was a discussion about a pseudo elements, where did that go? 16:12:29 jarhar: we decided not to have a fallback UA pseudo element in this case, and instead the select element itself should be it 16:12:58 fantasai: if there is a button element, is block layout what you want for it? don't think so because we want the button to align with the border right? 16:13:04 jarhar: yes 16:13:21 jarhar: think we could do several adjustments if the button is there 16:13:40 (display: contents might make focus funky too) 16:14:12 fantasai: from an author's perspective should not see things change just because you added markup 16:14:13 What if we add `select>button {border:0; padding:0}` instead? And leave select's borders and padding. 16:14:19 `select > button { display: contents }`? :) 16:14:21 ack jensimmons 16:14:26 or maybe select > button { display: contents; } 16:14:42 jensimmons: interesting that we have styling that depends on content 16:14:51 jensimmons: don't know of another case that works that way 16:15:07 jensimmons: not sure if authors would be confused by that or not 16:15:20 jensimmons: for the sake of these conversations more visuals would be n ice 16:15:55 ntim has joined #css 16:16:06 q+ 16:16:22 jensimmons: don't know what to think right now but want to help get it done, there might be bikeshedding. 16:16:28 Some common examples and use cases are detailed here: https://developer.chrome.com/blog/rfc-customizable-select 16:16:31 jensimmons: can't tell 16:16:33 ack emilio 16:17:03 emilio: maybe the button shouldn't have decorations and should delegate that to the select element. display:contents on the button 16:17:12 emilio: that may be a simpler option that avoids magic 16:17:26 emilio: also have feedback on the min sizing 16:17:41 q+ 16:17:51 emilio: 24px may be too big 16:17:59 emilio: white-space: normal seems find 16:18:15 emilio: 2px block and 1px inline padding already exists? 16:18:29 emilio: overall, the fewer rules the better 16:18:46 emilio: display:contents could explain has behavior 16:19:14 q+ to bring up the topic of how this relates to base styling of other controls 16:19:20 q+ 16:19:20 emilio: maybe also make it !important 16:19:34 ack fantasai 16:19:48 fantasai: agree display: contents on the button make sense 16:19:55 fantasai: no need for !important 16:20:14 fantasai: considering pixel values for padding, I am in favor of em because it'll scale with font sizing 16:20:32 fantasai: font-relative is good 16:20:35 (.25em seems quite big, that's 4px) 16:20:40 fantasai: not sure why 0.25, where did that come from? 16:20:48 s/0.25/1.2em/ 16:21:06 many of these things are based on the existing UA stylesheet rules for ` 16:49:28 OK, I'll post this discussion to https://github.com/w3c/csswg-drafts/issues/10909. 16:49:59 jarhar: last time we talked about this issue I tried to loop in Tim's proposed styles for buttons for appearance:base into selecct 16:50:08 jarhar: also talked about system colors and contrast, and the picker 16:50:28 jarhar: since then I've posted some styles that used Tim's proposed colors for in-page and system colors for picker 16:50:34 jarhar: thought these would be reasonable defaults 16:50:50 jarhar: Emilio proposed an alternative about system colors 16:51:05 jarhar: I don't have strong opinions but would like to choose something 16:51:13 q+ 16:51:19 ack ntim 16:51:20 jarhar: Emilio liked system colors because it ensures contrast with all the modes 16:51:43 ntim: my original suggestion of using currentcolor and transparency was to make in-page controls as easy to style as a blank div 16:52:13 ntim: for the picker, we can't use transparency. think we should use system colors there. Dialogs and popovers use them by default also. 16:52:24 ntim: everything I've proposed is consistent with other things in HTML 16:52:36 q+ 16:52:45 ack emilio 16:53:07 emilio: The main reason why I think system colors could be worth it is that it works with color scheme and forced colors. 16:53:33 emilio: Also don't think it would be not too hard to do it. But don't object to using currentcolor etc 16:53:37 q+ 16:53:43 ack masonf 16:54:13 masonf: I think we should aim for having a thing that is easiest to understand, since developers are likely to override anyway. 16:54:32 q+ 16:54:42 ack fantasai 16:54:44 masonf: weakly in favor of what Emilio is proposing for that reason 16:54:55 fantasai: the currentcolor approach is more minimal I think 16:55:14 In devtools, they'll see that background-color is `color-mix(in lab, currentColor 10%, transparent)` 16:55:21 100% developers do not know that system colors exist. They will assume these are defined colors in the UA stylesheet. 16:55:32 fantasai: they get colors either way, but fewer with currentcolor, so I think it's easier for them to override just that one 16:55:41 ack jensimmons 16:56:03 jensimmons: there are different groups of colors: text, borders, bits and pieces 16:56:18 jensimmons: why are the backgrounds of my form a certain color? 16:56:35 jensimmons: as soon as they change the color of the page it'll show a difference for their form 16:57:03 jensimmons: nothing else on the page comes with a background color, so I think it's better for this to not have one eother 16:57:07 q+ 16:57:08 q+ 16:57:23 jensimmons: like the idea of a transparent background 16:57:30 q+ 16:57:32 jensimmons: it's busywork to have to change that 16:57:42 jensimmons: this makes them feel a pain in the ass to style 16:58:24 ack keithamus 16:58:36 keithamus: dialogs and popovers have canvas as the background color 16:58:46 keithamus: my preference would be system colors 16:59:02 ack astearns 16:59:03 astearns: I wonder if using transparency would get us into problems with contrast 16:59:05 ack emilio 16:59:11 I think dialog and popover are different in that they are displayed in the top layer. 16:59:16 Form controls are not. 16:59:21 emilio: it doesn't necessarily cause contrast issues unless you use background images 16:59:41 Yes, canvas and dialog have backgrounds. That makes sense. Form controls don't feel special — like they should be part of the page... they are elements on the page. Where dialog — well, of course it has a color. Just like the body itself. It's a thing, that needs a background. 16:59:49 emilio: I think native app design systems do have background colors on their form controls? 17:00:12 material design :) 17:00:12 ack fantasai 17:00:18 fantasai: is there a precedent for toolkits with transparent backgrounds? 17:00:23 What's also super important is thinking through how authors will override the colors. How will they change each, and what else does that affect? 17:00:36 fantasai: if we go with system colors we'd have to define more of them 17:01:07 fantasai: different systems also display select elements differently 17:02:07 keithamus: system colors are an abstraction away from color mixing, but we're presumably sticking to one style 17:02:25 emilio: nothing prevents us from mixing to currentcolor 17:02:42 fantasai: system colors require contrast, but currrentcolor doesn't know what it is mixing with? 17:03:12 fantasai: needs contrast be\tween system colors 17:03:23 (can't compute a system color to transparent) 17:03:58 +1 to understanding the developer experience better 17:04:24 topic: end 17:04:31 zakim, end meeting 17:04:31 As of this point the attendees have been castastrophe, emilio, chrishtr, masonf 17:04:33 RRSAgent, please draft minutes v2 17:04:35 I have made the request to generate https://www.w3.org/2024/11/07-css-minutes.html Zakim 17:04:42 I am happy to have been of service, astearns; please remember to excuse RRSAgent. Goodbye 17:04:42 Zakim has left #css 17:07:11 fantasai: for a concrete example, in Firefox for macOS HighlightText computes to currentColor and a semi-transparent selection background (https://searchfox.org/mozilla-central/rev/113b09cdd5282b39db65b2f62abe843558b9471a/widget/cocoa/nsLookAndFeel.mm#142-144,185-187) 17:09:00 That is... any argument for lacking contrast with transparent system color applies too to styling appearance base with currentColor, doesn't it? 17:13:42 jamesn has joined #css 17:47:34 emilio: Maybe I didn't understand your suggestion? 18:00:02 Adam_Page has joined #css 18:11:12 fantasai: my comment was that we could really make system colors work the same way as currentcolor-based stuff, while maybe making it work better for high contrast mode at the same time, if we really wanted 19:13:28 bkardell_ has joined #css 19:38:09 atrigent_ has joined #css 19:39:12 atrigent__ has joined #css 20:19:41 emilio: Ah, ok. I think I understand what you're saying... 20:20:13 emilio: so we'd say that for `appearance: base`, the system colors would compute differently -- to variations of currentColor and transparent, instead of to their opaque colors. 20:20:26 emilio: and in high-contrast mode they would magically be the right colors 20:21:15 emilio: That seems cool, but I wonder if, once authors start tweaking the colors, we might end up with some mix of author-specified and system-specified colors because the author didn't realize that's what was happening under the hood. 20:23:49 fantasai: right, but in forced colors you generally don't honor non-system-color author colors anyways 20:23:59 So not sure it matters in practice 20:56:09 atrigent_ has joined #css 21:40:18 fantasai, florian, where are the metadata requirements for various statuses documented? Trying to figure out if CRD actually requires a deadline or not. 21:40:34 (I have it listed as requiring one in ) 21:41:20 In particular, https://www.w3.org/standards/types/#x3-2-1-candidate-registry-draft doesn't list those things 22:02:23 TabAtkins: https://www.w3.org/pubrules/doc 22:28:07 danke