16:57:52 RRSAgent has joined #components 16:57:52 logging to https://www.w3.org/2020/10/29-components-irc 16:57:54 RRSAgent, make logs Public 16:57:55 please title this meeting ("meeting: ..."), Ralph 16:58:02 meeting: CSS Module Scripts 16:58:42 Bert has joined #components 16:58:48 MasakazuKitahara_ has joined #components 17:00:24 present+ 17:00:32 graynorton has joined #components 17:00:44 jan has joined #components 17:01:00 present+ 17:01:21 masonfreed has joined #components 17:02:11 Rob has joined #components 17:02:23 present+ 17:02:33 bkardell__ has joined #components 17:03:33 Lars has joined #components 17:03:39 present+ 17:03:43 justin has joined #components 17:05:04 present+ 17:05:06 yuzhe-han has joined #components 17:06:45 cpn has joined #components 17:08:04 TabAtkins has joined #components 17:08:12 present+ 17:08:18 present+ 17:09:01 present+ 17:09:39 present+ 17:10:32 q+ 17:11:21 q? 17:11:31 present+ 17:11:35 +1 to this assertion, it's nice 17:11:38 Westbrook has joined #components 17:12:01 present+ 17:12:03 q+ 17:12:26 q+ to ask clarification about syntax 17:13:05 agree 17:14:00 q+ 17:14:21 q? 17:14:23 Bert, you wanted to ask clarification about syntax 17:14:52 q+ to ask how @import can be supported if it's not today 17:15:43 For anyone interested in import assertions in general, here's a tc39 proposal link: https://github.com/tc39/proposal-import-assertions 17:15:56 [Dan, there's a request for a pointer to your slides] 17:16:05 present+ 17:16:08 q+ what comes in the imported namespace object? 17:16:10 q? 17:16:28 q+ namespace 17:17:00 same - what is "q?" :) 17:17:21 Here's the follow on proposal for json modules: https://github.com/tc39/proposal-json-modules 17:17:42 q+ 17:17:54 https://1drv.ms/p/s!AtmAxiCADIM8nf4vuh8bmWLljCv4tQ 17:17:57 annevk, you wanted to ask how @import can be supported if it's not today 17:19:38 (to be clear, my concern applies either way) 17:21:12 q+ 17:23:05 CSS already does this, right? 17:23:56 yeah 17:25:02 q? 17:25:03 q? 17:25:06 q+ 17:25:50 kevinpschaaff has joined #components 17:26:06 kevinpschaaf has joined #components 17:26:18 I think speculative loading is a pretty compelling reason this isn't a concern and allowing speculative loading seems good. 17:28:11 (And if you are concerned, CSP \o/.) 17:29:30 q+ 17:31:03 ACTION: file an issue on when to fail when attempting import of CSS in workers 17:32:24 +1 to @masonfreed's point on alignment 17:33:17 mason: reason we should silently ignore @import in CSS modules and not throw is because that what a stylesheet does today - we should align 17:33:47 +1 to following CSS resiliency to error on this 17:34:02 justin: semantics for JS import of CSS can be different, throw feels more natural and feels better as a way to punt this decision 17:34:20 q+ 17:34:40 q+ 17:34:45 brian: questions whether the prior statement of @import being ignored in CSS stylesheet is true 17:35:06 q? 17:35:08 Nope, if an @import fails it just fails, the rest of the stylesheet proceeds as normal 17:35:12 bkardell__: seems you're wrong: https://software.hixie.ch/utilities/js/live-dom-viewer/saved/8641 17:35:48 RRSAgent, make minutes 17:35:48 I have made the request to generate https://www.w3.org/2020/10/29-components-minutes.html MikeSmith 17:35:53 RRSAgent, make logs public 17:36:29 RRSAgent, make logs public 17:36:59 bert: is it better to just embed CSS in JS? 17:37:20 annevk: you can do that if you want with constructable stylesheets 17:37:50 Bert: https://wicg.github.io/construct-stylesheets/#constructing-stylesheets 17:39:23 https://github.com/whatwg/html/pull/4898 is the PR and doesn't have other concerns afaict. 17:41:06 topic: should adoptedStyleSheets be assignable 17:41:57 https://github.com/WICG/construct-stylesheets/issues/45#issuecomment-624773407 17:42:01 q+ 17:42:11 dan: arguments for include easy way to init component with set of well known styles, arguments against are that you can overwrite previous entries accidentally 17:42:37 q+ 17:42:41 q+ to respond to .item() 17:42:42 hober: want this to be consistent with document.styleSheets 17:43:05 q+ 17:43:57 q- 17:44:03 (Justin is covering my comments.) 17:45:02 justin: there is a back compat issue with adding .item to array, so there will be a fork between JS and CSS items 17:45:12 q+ 17:45:25 q+ to ask 17:45:39 q+ 17:46:06 q- after 17:46:13 q- later 17:46:19 mason: I think adoptedStyleSheets should be assignable, the use case is definitely there for assigning a set of stylesheets at a moment in time and not try to slice or do something more complicated 17:47:03 hober: can we just spec a property with a different name to avoid backward compatibility concerns 17:47:49 q+ 17:47:53 q- later 17:48:01 usage is relatively high for this feature today: https://chromestatus.com/metrics/feature/timeline/popularity/2846 17:48:09 q+ 17:48:25 +1 to mason's point on it supports good scenarios, not just a question of back compat 17:48:31 q+ 17:48:41 q- later 17:48:50 q+ 17:48:54 q+ 17:48:55 q- later 17:49:57 As I noted just now in the issue, note that there's precedent for assigning with classList and relList. They're slightly different, but seem comparable enough. 17:50:16 q+ 17:50:19 justin: framework author perspective, we have very static styles that make the assignment syntax nice 17:50:27 q+ 17:50:35 justin: many of our scenarios are single actor and would benefit from assignment 17:51:31 q- 17:51:34 hober: strange thing about assignability is that observablearray will copy the array, not take a reference, so subsequent mutation to the original array will not impact adoptedStyleSheets set 17:52:15 q- later 17:52:33 hober: usage being high seems more like argument for Chrome compat and not right API 17:53:21 Alex can you write what you said? I missed it. 17:53:32 q+ 17:53:58 q- later 17:54:16 I said: the length of the list of the assigned list doesn't have much cost; you should think about costs of assignment as being relative to the amount of CSS being applied (and it's expense) rather than number of items in the list 17:54:21 q+ 17:54:27 q- later 17:54:31 Jan: I like ObservableArray, push would be great for my library. We add stylesheets across multiple prototypes and push seems more usable 17:55:04 Justin: not arguing against ObservableArray, just adding assignability 17:55:17 q+ 17:55:25 Rob's point is a good one: these are not exclusive options 17:55:33 q- later 17:55:54 Rob: we prefer assignability for our framework... (Rob can you please write the reason you said) 17:57:02 ACTION: continue discussion for adoptedStyleSheets in issue 17:58:04 Emilio: like ObservableArray, wants alignment with other APIs though 17:58:09 MikeSmith, you wanted to ask 17:59:09 FASTElement uses adoptedStyleSheets today. During initial component creation there's typically a fixed set of sheets that we assign, so having the assignability of the property is preferred in that scenario. However, we have additional scenarios where we need to dynamically add and remove specific sheets. For that use case, the observable array APIs are ideal. So, for us, having both assignability and observability are desired if possible. 17:59:26 Justin: made proposal for @sheet syntax for CSS bundling where @sheet could be named and available for import. PTAL 17:59:39 Mike: what's the overall plan in terms of where it will live? 17:59:46 Dan: it will be in the HTML spec 18:00:54 Thanks all! 18:01:10 so excited to see this moving forward; great work all 18:01:41 Slides: https://1drv.ms/p/s!AtmAxiCADIM8nf4vuh8bmWLljCv4tQ 18:01:46 Import Assertions PR: https://github.com/whatwg/html/pull/5883 18:01:58 hober: giving up on inline modules in JS is one of my great ES6 regrets; I think Shu has a path back, tho 18:02:05 zakim, end meeting 18:02:05 As of this point the attendees have been Bert, dandclark, Rob, miriam, BoCupp, masonfreed, AramZS, hober, leobalter, smaug, bkardell__, slightlyoff 18:02:07 RRSAgent, please draft minutes v2 18:02:07 I have made the request to generate https://www.w3.org/2020/10/29-components-minutes.html Zakim 18:02:07 CSS Modules PR (to be integrated with Import Assertions): https://github.com/whatwg/html/pull/4898/ 18:02:10 I am happy to have been of service, Ralph; please remember to excuse RRSAgent. Goodbye 18:02:14 Zakim has left #components 18:02:28 @slightlyoff Dan E has a new proposal for inline modules :) 18:46:27 jensimmons has joined #components