15:58:29 RRSAgent has joined #css 15:58:29 logging to https://www.w3.org/2022/07/13-css-irc 15:58:32 RRSAgent, make logs Public 15:58:33 Meeting: Cascading Style Sheets (CSS) Working Group Teleconference 15:59:01 jfkthame has joined #css 15:59:44 present+ 15:59:50 present+ 16:00:56 present+ 16:01:04 dholbert has joined #css 16:01:11 present+ 16:01:18 present+ 16:01:52 present+ 16:01:59 smfr has joined #css 16:02:03 Scribenick: emilio 16:02:21 alisonmaher has joined #css 16:02:24 Present+ 16:02:27 present+ 16:02:28 present+ 16:02:42 present+ 16:02:43 present+ 16:02:48 bkardell_ has joined #css 16:02:54 present+ 16:03:10 oriol has joined #css 16:03:13 GameMaker has joined #css 16:03:17 present+ 16:03:20 present+ 16:03:28 present+ 16:03:37 present+ 16:03:42 present+ 16:04:01 Topic: Upcoming Meetings 16:04:12 chris has joined #css 16:04:16 scribe+ 16:04:16 topic: [css-2022] Add CSS Color 4 to "Official definition" 16:04:20 present+ 16:04:37 +1 to adding to snapshot 16:04:37 github: https://github.com/w3c/csswg-drafts/issues/7455 16:04:41 +1 16:04:43 present+ 16:05:02 RESOLVED: Add Color 4 to snapshot 16:05:12 great! 16:05:19 lea has joined #css 16:05:28 bradk has joined #css 16:05:30 topic: [css-highlight-api] Incubating custom highlight pointer event handling in CSSWG 16:05:34 present+ 16:05:39 github: https://github.com/w3c/csswg-drafts/issues/7447 16:06:02 dandclark: Highlight API had some progress these last couple years 16:06:06 present+ 16:06:15 ... but no progress to be able to interact w/ highlights 16:06:27 ... common use case is spellcheck 16:06:40 ... there's no way to interact with highlighted ranges 16:06:56 ... so a super useful addition would be to add pointer events to highlighted ranges 16:07:10 q+ 16:07:11 ... there's various ways to determine how they'd be routed etc 16:07:29 ... but I wanted to check whether this is the right place for this, since this is a bit more DOM-y 16:07:47 ... some first steps would be moving some issues from the MSEdgeExplainers repo to CSSWG 16:08:04 ... we can do some spec PRs and prototyping 16:08:16 ack florian 16:08:31 florian: I think the use cases are numerous and compelling, and proposed API looks pretty good at first sight 16:09:00 present+ 16:09:03 ... there are a number of interesting questions: things like dealing with overlapping ranges, and how to dispatch to the DOM in general 16:09:09 Agree the use-cases for the feature are good and worth developing. Fine with this group taking on the work; we do DOM-ish stuff sometimes, and it feels reasonable to handle this in the same group as the rest of the CSS feature. 16:09:39 florian: the other similar thing that comes up is other pseudo-elements 16:09:51 ... is this a missed opportunity to fix that too? 16:10:13 ... anyways I think the best thing to do is bringing it in-group 16:10:31 astearns: is csswg the only place you have considered bringing in? 16:10:33 q+ 16:10:54 dandclark: for now csswg, but we possibly also want to raise a tag review and other groups like whatwg 16:11:21 emilio: My first question is whether, there's a Selection and Editing API WG, which already has a buch of interop problems to solve 16:11:37 emilio: Other question is, do we really need to dispatch new events on these, or can we re-use the existing machinery? 16:11:44 emilio: [missed] 16:11:50 emilio: I don't know whether StaticRange has it as well 16:11:57 emilio: there are ways to check interaction of pointer events 16:12:10 emilio: It seems to me there's some other areas where this could benefit from, other groups that could also help here 16:12:16 emilio: especially editingWG 16:12:24 emilio: lots of interaction with ShadowDOM and stuff 16:12:25 present+ 16:13:00 s/missed/add a convenient way to check whether an event intersects with a highlight 16:13:10 dandclark: [missed] 16:13:19 dandclark: But would think it's good to start here in CSSWG 16:13:33 astearns: Emilio, any objection to starting here? 16:13:36 emilio: no objection 16:13:39 astearns: Any other comments 16:13:52 gtalbot has joined #css 16:14:01 astearns: I suggest we take this as an incubation in the CSSWG, noting that it's merely an incubation 16:14:16 astearns: objections? 16:14:30 RESOLVED: Incubate this in CSSWG 16:15:08 dandclark: there's a section in the existing draft about this, which is just a missing section 16:15:15 ... do we want to put it there? 16:15:21 vmpstr has joined #css 16:15:29 astearns: seems like a reasonable place to start? 16:15:46 fantasai: do we want to put it into a L2 spec instead? Seems like highlight API is relatively stable 16:15:52 florian: was about to suggest the same 16:15:55 A level 2 diff spec seems a better way, agreed 16:16:07 dandclark: that works for me, might have some follow-up questions about process 16:16:27 present- 16:16:28 astearns: who's the current editor? 16:16:45 florian: I'm one of them 16:16:52 I'm the third editor 16:17:19 fantasai: there's 5 open issues on L1, we should consider trying to fix them and move to CR 16:17:30 astearns: dandclark, would you want to be an editor of L2? 16:17:33 dandclark: sure 16:17:54 RESOLVED: Create a highlight L2 spec, dandclark is an editor 16:17:59 ol' D&D Clark, as I always read it 16:18:24 topic: [selectors-4] Issue 11: Introduce pseudo-class matching when user changed the value of an input 16:18:43 github: https://github.com/w3c/csswg-drafts/issues/1533 16:19:10 emilio: I think this would mostly be an alias to a simple :is(:user-valid, :user-invalid) 16:19:22 emilio: but maybe best to have this conversation with Sebastien 16:19:58 fantasai: Comment pointing out a few cases where it's not exactly the same 16:20:03 fantasai: It's not exactly what emilio is suggesting, see last comments in the issue 16:20:37 bramus: so this is to target inputs, proposed aliases :dirty / :changed / :user-edited 16:20:54 ... concept is when a user interacts with the input then it would become dirty 16:21:45 fantasai: the other thing to note is that `:user-valid` / `:user-invalid` is that they trigger on submission, but this presumably won't 16:21:58 I feel like this has come up in the past but I can't recall what we called it. 16:22:02 https://angular.io/guide/form-validation#control-status-css-classes 16:22:12 astearns: should we resolve to work on this? 16:22:33 bramus: there seems to be a minor difference between :dirty and whether the user touched it 16:22:45 q+ 16:22:50 ... e.g., focusing the input would be touched, changing the value would be dirty 16:22:52 q- 16:23:00 ack tantek 16:23:06 tantek: in general looks like a good area to explore 16:23:09 tantek: This in general sounds like a good area to explore 16:23:23 ... I think we have talked about in the past about this but I can't recall where 16:23:39 ... one question is what happens with autofill and similar interactions 16:23:52 i found these very helpful in the past: https://www.irccloud.com/pastebin/mBDWfxFT/ 16:24:04 ... does autofilling + clearing it out get special treatment? 16:24:17 ... there's a bunch of questions about what other states do we need to design for 16:24:29 ... we might want to do some more research on that 16:24:33 Good suggestion 16:24:41 +1, it seems there's a variety of different use cases that don't quite always match 16:24:42 q+ 16:24:53 ack flackr 16:25:06 flackr: I thought the autofilled text isn't exposed till the user interacts with the field 16:25:16 I would also advise coordinating this exploration with #openui 16:25:25 flackr: which would suggest that naively that before you interact with the page it wouldn't be dirty 16:25:47 emilio: You're right we dont' expose it 16:25:53 emilio: but we do match ?? pseudo-class 16:25:56 some of this may differ between password management autofill and more general autofill, too 16:25:59 s/??/:autofill 16:26:18 +1 dbaron 16:26:32 astearns: I'll raise an issue with openui so that they're aware 16:26:42 ... but it seems we have more questions than decissions at this point 16:26:50 ... so I wonder if we should take it to the issue again for now 16:26:57 ... does that sound ok? 16:27:00 [silence] 16:27:16 topic: [css-text-decor] Feature request - add a property text-decoration-length that modifies the length of the underline 16:27:31 github: https://github.com/w3c/csswg-drafts/issues/4557 16:27:43 fantasai: there's been a variety of requests for controlling the length of underlines 16:28:07 https://github.com/w3c/csswg-drafts/issues/4517 16:28:11 ... we have some spec text to ensure that underlines break between words 16:28:21 ... but we've been asked to provide more control 16:28:35 ... suggestion is to define a new `text-decoration-trim` property 16:28:37 https://github.com/w3c/csswg-drafts/issues/4557#issuecomment-1117735704 16:28:41 ... which would take a `` 16:28:49 ... and shortens the underline by the given amount 16:29:02 ... there's the question of what's the percentage relative to 16:29:08 ... so we could start with `` 16:29:21 ... on block containers we could apply it to both sides of the block 16:29:35 ... on inlines it should follow the behavior of box-decoration-break 16:29:57 ... negative values are allowed and would extend the text-decoration 16:30:06 ... percentages were suggested to be relative to the containing-block 16:30:18 ... there's some effect animating where that'd be useful for 16:30:39 https://www.w3.org/TR/css-text-decor-4/#text-decoration-skip-inset-property 16:30:48 ... if we want to discuss percentages we can do that now but I'd like to add this to the spec and remove `text-decoration-skip-inset` 16:31:28 ... as described above wrt inlines / blocks 16:31:40 astearns: is text-decoration-skip-inset implemented anywhere? 16:31:43 fantasai: I don't think so 16:31:58 astearns: is trim the best word when negative lengths can be an extension? 16:32:16 just like indent negative means outdent? 16:32:22 yep 16:32:24 fantasai: I think so since negative trim is to extend the same way as negative extend is trim, I think use case is mostly trimming 16:33:01 florian: the property that would be dropped had an auto value 16:33:07 ... should this have the same value? 16:33:21 ... if you want the browser to trim by the right amount 16:33:33 ... so we'd be losing this but we could reintroduce this if wanted 16:33:36 fantasai: yes 16:33:47 astearns: fantasai, would this go into your initial write-up? or should we decide later? 16:34:07 fantasai: I don't think an auto value is particularly useful if you can specify lengths 16:34:20 +1 fantasai, worth documenting an actual use-case of for 'auto', like what problem is it solving? 16:34:35 it's solving the problem documented in https://www.w3.org/TR/css-text-decor-4/#text-decoration-skip-inset-property 16:35:01 florian: in CJK when you have a piece of content and they might be next to each other, and without skipping you might not notice that they're different words 16:35:12 ... you might want to say "browser, just do something" 16:35:15 Easy enough to define "auto" as "the width of the underline" perhaps? 16:35:32 ... you could do "3px" or something, but then why that? 16:35:43 fantasai: I think the width of the underline was my initial thought 16:36:06 ... though might not be useful if the underline is very big? So might be more like `min(0.1em, underline-width)` or something 16:36:14 florian: do we want browser guidance here? 16:36:33 fantasai: I think we want to do that so people know what to implement 16:36:42 florian: [missed] 16:37:09 fantasai: one of the problems we have with percents is that we have percentages for word-spacing etc to reference the font-size of the element? Maybe we can do that 16:37:14 s/[missed]/I have wanted this without having an opinion on a specific value/ 16:37:24 s/[missed]/As one data point, I have authored CJK content where I've wanted this, without having a view as to how big it should be./ 16:37:38 fantasai: happy to start with `` / `|auto` / then add percentages 16:37:46 ... probably worth starting with length and add things afterwards 16:38:17 plinss: question, removing lengths from the end of the decoration, or also from the skipping between descenders and so 16:38:23 fantasai: just end 16:38:47 astearns: we discussed that and run into implementation difficulties 16:38:58 plinss: ok, just wanted clarification, would be weird if it trimmed from both 16:39:08 s/do we want browser guidance here?/can we leave it as browser defined, or do browsers want guidance here?/ 16:39:23 `text-decoration-trim: ` for the resolution 16:39:33 jfkthame: one thing I wondered is whether we want two values, one for start, one for end 16:39:42 fantasai: makes sense 16:39:54 jensimmons: separate for start/end could be declared all at once 16:40:07 q+ to ask about interactions with text-overflow 16:40:09 ... could see authors creating some kind of drop-shadow-like effects 16:40:16 -> illustration https://github.com/w3c/csswg-drafts/issues/4517 16:40:21 ... specially when combined with underline offset/thickness 16:40:40 maybe also when combined with italic/oblique 16:40:43 ... there's the question of what happens with inline-box breaking 16:41:04 astearns: that's the part where it'd follow box-decoration-break 16:41:10 ack tantek 16:41:10 tantek, you wanted to ask about interactions with text-overflow 16:41:31 tantek: just wanted to add with potential interactions with text-overflow: ellipsis 16:42:05 ... do you want this always, only when there's no text overflow, do you want to trim from the ellipsis start...? 16:42:18 fantasai: can't even remember whether the ellipsis gets underlined or not atm 16:43:04 astearns: if you're not using trimming at all, it seems this is a higher level question, you should get control for whether the underline applies to the end overflow 16:43:31 plinss: my intuition would be that the end would be that the end would be where it'd be without text overflow 16:43:49 fantasai: [missed], something about box-decoration-break 16:44:01 plinss: I like separate start/end, provides more interesting animation possibilities 16:44:09 box-decoration-break defaults to slice, which would get the behavior plinss describes 16:45:49 RESOLVED: Remove text-decoration-skip-inset, add `text-decoration-trim: ?`, follow-up for improvements and issues 16:46:16 florian: could I ask people familiar with in-design and similar software if they have auto values and how it works if so? 16:46:18 astearns: don't recall 16:46:44 astearns: will ask about in-design underlines 16:47:01 fantasai: should I add the definitions with auto / percentages in the first draft? 16:47:07 astearns: I think it'd be good to add at least a note 16:47:36 florian: either that or put the value in with an issue on how to define it 16:48:01 fantasai: if people are fine with me adding it in I'd just do that since it makes it easier to discuss 16:48:14 topic: [css-ui] revert-layer rolling back to author origin should disable native appearance 16:48:23 github: https://github.com/w3c/csswg-drafts/issues/7239 16:48:57 oriol: there are some properties than when set on autor/animation origin disable native appearance unless `revert` / `revert-layer` is specified 16:49:02 ... for revert it makes sense 16:49:10 ... since it always reverts to user/ua origin 16:49:20 ... but revert-layer can revert to author origin 16:49:26 q+ 16:49:29 ... and in this case it should disable native appearance 16:49:35 ... all implementations already behave like this 16:49:44 ... so proposal is to align with implementations 16:49:44 ack florian 16:50:01 florian: I think it's over-correction, original spec forgot revert-layer but forgot taking this into account 16:50:22 ... if you have multiple revert-layers, how does this behave? Is it feasible to check all of them? 16:50:41 oriol: I didn't test this more complex case 16:51:10 florian: could we spec that however many layers you revert you account for that, and revisit if it's problematic? 16:51:11 q+ 16:51:17 ack emilio 16:51:26 emilio: I just wanted to say, you do need to revert all the layers 16:51:31 emilio: you need to get to the original value 16:51:41 emilio: so I think it makes sense to spec this, it's the sensible thing to do 16:51:47 so, +1 16:52:53 RESOLVED: For properties that disable native appearance, do all the reverting, take into account the origin of the final cascaded value 16:53:38 Topic: [css-mediaqueries] Should prefers-color-scheme in SVG images be context-dependent? 16:53:44 github: https://github.com/w3c/csswg-drafts/issues/7213 16:54:04 emilio: I did check with the security folks at MOzilla, and they weren't concerned about making this apply even more generally to iframes 16:54:26 emilio: Only attack is if a page is in an iframe and a top-level frame, can determine ??? 16:54:31 emilio: But no problem for SVG images 16:54:37 emilio: I think it'd be nice to do it for iframes as well 16:54:48 emilio: My discussion with them was that it's not a big concern, idk if other folks have an opinion 16:55:03 smfr: On the WebKit side would be much more reluctant to do on iframes, but OK for SVG images 16:55:17 smfr: Was having trouble finding text in HTML spec that SVG couldn't run script or load external images 16:55:28 smfr: so part of this issue needs to clarify when SVG can load external resources or run script 16:55:38 q+ 16:55:40 emilio: Why reluctant to make it work on iframes? 16:55:47 emilio: We already communicate info about backgrounds 16:55:56 smfr: I'd have to go back and ask the security ppl 16:55:58 CSSWG_LogBot has joined #css 16:56:07 ack chris 16:56:10 chris: SVG images in tag don't run scripts or fetch resources 16:56:11 smfr: RE where it's defined that SVG Images don't run scripts, that's defined in https://svgwg.org/specs/integration/ 16:56:18 chris: if they are in they can fetch and run script 16:56:33 chris: It's not a function of SVG, but function of SVG's integration in external environment and what it allows them to do 16:56:36 see https://svgwg.org/specs/integration/#secure-animated-mode 16:56:38 astearns: When in ... 16:56:41 "Secure animated mode" 16:56:41 chris: They can do everything 16:56:46 astearns: Are they SVG images? 16:56:51 chris: Yes, just not using an tags 16:56:53 dholbert: but HTML doesn’t reference that everywhere it needs to 16:56:59 emilio: From implementation point of view, they are iframes 16:57:06 (as far as I recall) Chrome is fine with passing into any SVG that can't fetch or run script (aka tags), and same-origin iframes. 16:57:07 chris: Also if displayed standalone, same thing 16:57:14 chris: they can run scripts, fetch resources, etc. 16:57:19 We just don't want to open up new cross-origin communication bits. 16:57:32 emilio: Seems there would be no objection to doing on SVG images 16:57:37 emilio: and maybe file an issue about iframes 16:57:44 smfr: Sounds good 16:58:10 ack TabAtkins 16:58:27 TabAtkins: from what I recall, Chrome is fine with this so long as it doesn't open up new cross-origin communication bits 16:58:35 TabAtkins: So SVG as img should be fine 16:58:40 TabAtkins: and same-origin iframe should be fine 16:58:44 smfr: That matches WebKit's preference, too 16:58:54 emilio: OK, then we can discuss iframes separately 16:59:05 emilio: I'm more interested in this SVG case 16:59:12 emilio: It's not easy for the iframe to tell where the preference comes from 16:59:16 emilio: we can discuss another time 16:59:18 ack fantasai 16:59:18 fantasai, you wanted to propose resolution 16:59:44 fantasai: Seems we have consensus on SVG as and also same-origin iframe 17:00:02 ???: what about SVG's that are rendered through CSS? 17:00:13 fantasai: There's an embedding mode for SVG that does this, so anything in that embedding mode 17:00:31 astearns: Maybe let's take a resolution on SVG first 17:00:43 emilio: draw background in iframes, that doesn't care about same vs cross-origin, so unsure how to do that 17:00:56 astearns: proposed that prefers-color-scheme in SVG-images is context-dependent 17:01:18 smfr: "SVG rendered in secure animated mode" 17:01:28 https://svgwg.org/specs/integration/#secure-animated-mode 17:01:34 astearns: objections? 17:01:52 RESOLVED: prefers-color-scheme in SVG rendered in secure animated mode is context-dependent 17:01:58 Meeting closed. 17:02:08 zakim, end meeting 17:02:08 As of this point the attendees have been flackr, bramus, emilio, dholbert, rachelandrew, argyle, dbaron, alisonmaher, TabAtkins, plinss, jfkthame, chrishtr, jensimmons, GameMaker, 17:02:12 ... oriol, faceless, fantasai, bkardell_, dandclark, lea, bradk, tantek, hober 17:02:12 RRSAgent, please draft minutes v2 17:02:12 I have made the request to generate https://www.w3.org/2022/07/13-css-minutes.html Zakim 17:02:14 I am happy to have been of service, astearns; please remember to excuse RRSAgent. Goodbye 17:02:19 Zakim has left #css 17:02:20 Topic: Meeting Registration (missed, goes first in the minutes) 17:02:35 astearns: If you think you might come to the F2F, please register into the wiki 17:02:41 https://wiki.csswg.org/planning/nyc-2022 17:03:10 astearns: Also, TPAC 2022 registration just opened. There is registration both for in-person and remote attendance, so please register appropriately 17:03:25 [note there's a cut-off date for early registration pricing] 17:03:32 https://www.w3.org/2022/09/TPAC/ 17:03:37 I have made the request to generate https://www.w3.org/2022/07/13-css-minutes.html fantasai 17:04:48 gtalbot has left #css 17:06:54 Linux_Kerio has joined #css 18:05:41 bradk has joined #css