16:58:37 RRSAgent has joined #css 16:58:41 logging to https://www.w3.org/2023/11/29-css-irc 16:58:41 bts has joined #css 16:58:41 RRSAgent, make logs Public 16:58:42 Meeting: Cascading Style Sheets (CSS) Working Group Teleconference 16:59:12 present+ 16:59:16 present+ 17:00:37 sakhapov_ has joined #css 17:01:09 present+ 17:01:20 present+ (IRC only for now) 17:01:28 present+ 17:02:10 present+ 17:02:11 schenney has joined #css 17:02:46 present+ 17:03:26 Present+ 17:03:29 present+ 17:04:48 If there's no other person I can scribe, but might have a baby interrupting 17:04:52 scribenick: fantasai 17:05:38 chris has joined #css 17:05:42 Topic: Administrivia 17:05:44 present+ 17:05:45 Rossen_: Anything to add/change? 17:06:10 Rossen_: Last week of December, proposing to skip the meeting due to holidays 17:06:18 lea has joined #css 17:06:29 Rossen_: Also sent an ask for topics / areas for a long call 17:06:41 Rossen_: so that we can reduce backlog of issues 17:06:58 -> https://lists.w3.org/Archives/Member/w3c-css-wg/2023OctDec/0094.html 17:07:13 present+ 17:07:34 Rossen_: We'll add an extra hour before regular call on December 13th 17:07:43 Rossen_: December 6th will be APAC time 17:07:58 Topic: Zoom 17:08:09 Subtopic: [css-zoom?] Zoom and CSSOM 17:08:23 present+ 17:08:30 Subtopic: none 17:08:44 Subtopic: Where to spec zoom 17:08:51 chrishtr: IIRC we resolved to put into viewport spec, wanted to confirm 17:09:20 https://github.com/w3c/csswg-drafts/issues/5623#issuecomment-1646125737 17:09:30 SebastianZ has joined #css 17:10:21 alisonmaher has joined #css 17:10:21 present+ 17:10:38 present+ 17:10:38 fantasai: Not sure what's state of device-adaptation, might need to rip stuff out, but that should be the right spec 17:10:56 jfkthame has joined #css 17:10:57 present+ 17:11:09 [discussion of organizing info in the spec] 17:11:19 present+ 17:11:20 emilio: we moved device-adapt to viewport, and ripped out all the things we didn't want 17:11:33 Rossen_: will bring for review before next WD anyway 17:11:51 Subtopic: [css-zoom?] Zoom and CSSOM 17:12:09 emilio: Variety of things in current browsers consistently account for zoom 17:12:24 emilio: I think we have consensus that anything with a position and getComputedStyle shouldn't account for zoom 17:12:27 emilio: would like to resolve on that 17:12:30 +1 to that proposed resolution 17:12:45 emilio: some smaller things like clientWidth can multiple zoom 17:12:48 emilio: my feeling is, the less APIs account for zoom the better 17:12:48 dino has joined #css 17:12:59 emilio: It seems getClientRect and ResizeObserver don't have a lot of compat constraints 17:13:00 q? 17:13:09 chrishtr: My guess is compat restrictions are low 17:13:15 chrishtr: most users not using these APIs 17:13:30 Rossen_: starting with a more restricted set is easier to expand than the other way around 17:13:42 chrishtr: WebKit and Chromium both implement the undesired behavior that emilio wants to change in this resolution 17:13:57 chrishtr: From my perspective, chromium happy to change, don't think we have compat risk 17:14:12 fantasai: just checking if i understand correctly 17:14:21 fantasai: just to check, we should zoom or not in getComputedStyle 17:14:42 emilio: if unzoomed size is 100px, and zoom is 2, gCS will return 100px to preserve round-tripping 17:15:19 RESOLVED: getComputedStyle() returns unzoomed value 17:15:26 so that it round-trips 17:15:29 present+ 17:15:49 argyle has joined #css 17:16:11 q+ 17:16:16 Rossen_: next, the rest of the APIs will return zoomed values 17:16:19 ack fantasai 17:16:22 ack flackr 17:16:26 flackr: I think that makes sense for things like getBoundingClientRect 17:16:32 flackr: not so sure about offsetTop 17:16:41 flackr: typically those are used to position things within the same parent, which has the zoom applied 17:16:54 flackr: so maybe it should apply any zoom that exists on that element, but not the zoom all the way to the screen 17:17:00 emilio: problem is that positions cross zoom boundaries 17:17:19 emilio: anything that has an offset, left or right, is not relative to a particular element. Or can be relative to elements with different effective zooms. 17:17:30 emilio: whatever you do, if it crosses the zoom boundary, it's going to be wrong for some use cases 17:17:38 emilio: so I'd like to not unzoom stuff that contains positions at all 17:17:56 flackr: so to make sure I understand, you're saying it'll apply all of the ancestor zooms 17:18:07 emilio: it would return unzoomed CSS px, depends what it's relative to 17:18:10 present+ 17:18:19 emilio: it would return zoom-independent CSS pixels, if that makes sense 17:18:34 emilio: we don't have that concept in the spec... but that's effectively the thing that gets stored in the computed style 17:18:43 flackr: same true of offsetWidth/Height ... 17:18:53 flackr: I think this will be hard to work with if not in the same space as the element you're working with 17:19:04 I think the general point is that people shouldn't be using zoom anyway... 17:19:05 emilio: if the position is relative to somehting with a different effective zoom, it's wrong either way 17:19:20 emilio: there's no good thing to return, you cannot say it's really 2x zoom 100px + ... 17:19:35 The closer zoom is to a scale() the better imo. 17:19:36 emilio: Idk how you'd return sensible values if you're crossing a zoom boundary 17:19:53 emilio: returning unzoomed values is returning in a coordinate space that the whole page understands 17:20:05 flackr: My proposal would be that it returns in the element's own coordinate space 17:20:16 flackr: developer could determine what conversion is necessary if moving to a different space 17:20:26 flackr: but if e.g. applying to sibling with same ancestor zoom, can use the styles direction 17:20:30 s/direction/directly 17:20:45 q? 17:20:53 flackr: e.g. set style.left = otherElementOffsetWidth 17:21:02 emilio: [missed] 17:21:06 flackr: [missed] 17:21:18 flackr: if multiplied by the zoom of the parent, but global zoom seems hard to work with 17:21:38 [flackr said something about how people write code with this] 17:21:53 Rossen_: [repeats Tab's comment about analogy with scale()] 17:21:58 Rossen_: seems like this needs more discussion? 17:21:59 q+ 17:22:07 flackr: I still have some concerns 17:22:24 emilio: can we resolve on things that return client rects [missed] 17:22:26 ack chrishtr 17:22:41 chrishtr: I agree that we should resolve on things that return client rects returning those in the physical pixel space, considering zoom 17:22:56 chrishtr: in addition, I think we should work through some examples in the issue to see what works best for offsetTop etc. 17:23:00 can we think of good terminology for these spaces? 17:23:09 chrishtr: I think this feature has direct value to developers, and we shouldn't consider a sad compat compromise 17:23:12 Rossen_: 100% agree 17:23:35 Rossen_: proposed resolution is, apply unzoomed value results to all bounding-box returning APIs 17:23:54 fantasai: this is the global coordinate system? 17:24:03 emilio: yeah. Let's call it global px values or something 17:24:06 Rossen_: page px values 17:24:40 RESOLVED: APIs that return bounding boxes such as getClientRects and ResizeObserver and IntersectionObserver return values in page-global px units 17:24:43 q+ 17:24:48 s/units/unit coords/ 17:24:59 ack PaulG 17:25:20 PaulG: I'm concerned, if a dev wants to assess if an element is covered or visibible in the viewport, will struggle with that 17:25:26 PaulG: if they get it wrong, has a11y impact 17:25:40 emilio: for that use case, what we just resolved on is what we want 17:25:50 PaulG: I think so too, will review with APA 17:25:56 q+ 17:26:13 ack chrishtr 17:26:25 chrishtr: Checking in on ResizeObserver, that returns offsetWidth-ish things? 17:26:32 chrishtr: should we exclude from resolution? 17:26:39 emilio: is content box relative to the element? 17:26:41 chrishtr: I think it is 17:27:15 RESOLVED: s/ResizeObserver/getBoundingClientRect/ 17:27:43 Subtopic: [css-zoom?] Zoom and inheritance. 17:28:16 emilio: This one is tricky 17:28:29 emilio: mostly due to the way zoom implemented, inheritance behaves really oddly 17:28:38 emilio: webkit and blink have a special case, if you apply zoom to an element 17:28:47 emilio: they zoom inherited font-size but not any other inherited property 17:28:58 emilio: seems the consensus is either zoom all the inherited lengths or we don't zoom any of them 17:29:11 emilio: I think it's clear that ideal behavior is zooming all inherited lengths 17:29:31 emilio: but I am worried, especially about perf cost, when you have lots of tiny elements with zoom 17:29:39 emilio: which I have seen in the wild while working on this 17:29:41 q? 17:30:51 fantasai: [example of p { font-size: 10px; zoom: 2; } ] 17:31:02 ack fantasai 17:31:08 fantasai: if inheriting unzoomed font-size, as soon as I put a SPAN in the paragraph, it will have 10px font-size 17:31:15 emilio: that works due to UA magic 17:31:21 emilio: what you inherit is 20px 17:31:28 emilio: if you have a span inside that has zoom as well 17:31:38 emilio: that will get font-size of 20px, instead of 40px as you expect 17:31:50 emilio: right now WebKit and Blink will zoom font-size correctly, but not e.g. line-height 17:31:57 emilio: that's messed up 17:32:05 q+ 17:32:12 emilio: so it's edge-casy but... on the other hand it's unfortunate that it doesn't work 17:32:37 emilio: I'd rather remove the font-size special case 17:32:45 emilio: no property does magic inherited value 17:33:07 emilio: I'd be fine with zooming every inherited length, just concerned about performance 17:33:19 present+ 17:33:24 Rossen_: Not understanding perf issue, let's make sure we have at least the right user-expected behavior before considering potential perf 17:33:29 Rossen_: prefer to measure and then discuss 17:33:49 Rossen_: I am unclear with your proposal what would happen to 'em' resolution 17:33:55 emilio: it has no effect from existing behavior 17:34:08 Rossen_: so if I have a 1em height, it'll be 40px or 20px or 10px? 17:34:14 emilio: it would be whatever the font-size is 17:34:22 Rossen_: what do we want to have, from user PoV 17:34:33 emilio: relative lengths reflect final zoomed font-size 17:34:55 Rossen_: I didn't want to make font-size exceptional here 17:35:07 emilio: that's my proposal 17:35:20 ack chrishtr 17:35:33 chrishtr: I feel like from the user point of view, making it apply to all inherited lengths makes sense 17:35:40 chrishtr: so I do think I would recommend resolving to do all inherited value 17:35:51 chrishtr: if during implementation we come up with an unaviodable perf problem, can discuss again 17:35:55 emilio: I'm ok with that 17:36:01 emilio: can we resolve in any case, don't make font-size special 17:36:17 RESOLVED: font-size is not special wrt zoom 17:36:36 emilio: other issue with chrishtr's proposal to zoom all computed values is 17:36:51 emilio: you need to figure out what to do with all those, whether it's fine if those px values came from relative lengths 17:36:56 emilio: assuming fine, then seems fine 17:37:11 fantasai (IRC): relative lengths are all absolutized before they're inherited 17:37:28 fantasai (IRC): if your font size changes and you wanted ems, then you wanted ems and they'll get converted to absolute size 17:37:38 emilio (IRC): I think it's ok 17:37:39 ScribeNick: dholbert 17:37:52 ack fantasai 17:38:03 PROPOSED: All computed lengths are zoomed when inheriting 17:38:46 fantasai (IRC): more precisely, when you absolutize a length to make a computed value, you apply a zoom. You have to undo that for getComputedStyle 17:38:56 fantasai (IRC): this is needed for animation to work 17:39:01 emilio (IRC): that's how impls work now 17:39:10 emilio (IRC): tricky thing is when you're inheriting into a thing with a different zoom 17:39:23 emilio (IRC): then you apply the zoom of the thing you're inheriting to on top, and that's this resolution 17:39:29 fantasai (IRC): that seems like the right thing to do 17:39:42 emilio (IRC): i agree from a user perspective. skeptical that we can make it fast but happy to try 17:39:58 chrishtr (IRC): proposed resln is all computed lengths, but we should exclude percentages 17:40:03 q+ 17:40:10 emilio (IRC): all computed absolute lengths, let's say 17:40:13 ack vmpstr 17:40:30 vmpstr (IRC): concretely, if I have width:100px and zoom:2 and a child that inherits that width, it would inherit 200px? 17:40:35 emilio (IRC): that already happens 17:40:50 emilio (IRC): the issue is when zoom is specified on the child. then what's the width of the child 17:41:00 emilio (IRC): with this resolution, it would be 200 17:41:13 thanks! 17:41:21 RESOLVED: All computed absolute lengths are zoomed when inheriting 17:42:24 I don't see the resolution recorded in the issue yet? 17:42:24 Topic: [css-values] Use of 100vw is causing pointless horizontal scrollbars on some websites 17:42:31 ah fixed 17:43:17 https://github.com/w3c/csswg-drafts/issues/5254 17:43:20 TabAtkins (IRC): this is an issue that crosses a few related issues 17:43:23 https://github.com/w3c/csswg-drafts/issues/1766 17:43:47 TabAtkins (IRC): several years ago, we resolved that viewport units would not subtract the size of root scrollers' scrollbars, even when the page is explicitly overflow:scroll 17:43:56 TabAtkins (IRC): Obviously overflow:auto is cyclic and not usable 17:44:22 TabAtkins (IRC): But for overflow:scroll, due to impl complexity and various issues, we decided to not subtract that. That means width:100vw will overflow with overflow:scroll; you'll get horizontal scrollbars 17:45:00 TabAtkins (IRC): This makes authors confused and annoyed. Florian suggests we might want scrollbar-gutter to impact resolution of viewport units. If you know you're going to be reserving space so that a screen-filling element won't fill in that spot, presumably you want a 100vw element to fit in that width and not overflow 17:45:18 TabAtkins (IRC): But we need to be consistent. Want scrollbar-gutter and forced scrollbars to behave the same 17:45:48 TabAtkins (IRC): Can we revert the old issue? and have forced scrollbars on the root scroller subtracted when resolving 100vw, 17:46:14 q+ 17:46:19 TabAtkins (IRC): In webkit and chrome, the width of scrollbars is controllable via scrollbar pseudos. We'd ignore that since that produces another cyclic issue 17:46:29 TabAtkins (IRC): we'd subtract the default width of scrollbars 17:46:56 q+ 17:47:01 TabAtkins (IRC): authors continue to complain about useless horizontal scrollbars with 100vw or 99vw etc. Browser is refusing to subtract space that it knows something will never fill. Creates a problem for authors 17:47:11 ack emilio 17:47:28 emilio (IRC): two thigns. first: do you recall what's the status of propagation of scrollbar-gutter to the root 17:47:43 TabAtkins (IRC): not sure. I suspect we don't do additional propagation. try not to do propagation on new things 17:48:09 emilio (IRC): my gut feeling, as long as we make this dependent only on style of :root, not accounting for overflow propagation of the body, it's workable. not pretty, but workable 17:48:27 emilio (IRC): in general seems like it'd be nice to fix this. I agree it's unfortunate that it doesn't work 17:48:36 "As for the overflow property, when scrollbar-gutter is set on the root element, the user agent must apply it to the viewport instead, and the used value on the root element itself is scrollbar-gutter: auto" 17:48:41 emilio (IRC): I'm skeptical of making it implicitly depend on the body's computed style, because then you end up with funny cycles 17:48:43 https://drafts.csswg.org/css-overflow/#scrollbar-gutter-property 17:48:51 emilio (IRC): style container queries, etc. stuff gets messy real fast 17:49:10 emilio (IRC): the other thing: media queries right now resolve viewport units. We'd need to make sure we don't account for scrollbars in that case, or else it's trivially cyclic 17:49:25 ack florian 17:49:32 TabAtkins (IRC): agreed. It'd work the same as font-size where it takes some initial value that disregards styles on the page 17:50:01 florian (IRC): not sure I understand impl complexity problems that came up last time. If those were in the way, are they in the way of scrollbar-gutter too? 17:50:21 emilio (IRC): main difference between scrollbar-gutter and overflow is the propagation stuff, impl-complexity wise 17:50:40 emilio (IRC): it was messy when gecko was trying to account for this with overflow propagation from body 17:50:46 "However, unlike the overflow property, the user agent must not propagate scrollbar-gutter from the HTML body element." 17:50:53 So yeah, overflow-gutter doesn't propagate 17:50:56 great 17:50:58 q+ 17:50:59 florian (IRC): authors commonly depend on this. We can just tell them put it on the root directly, and I suppose that's a thing people can learn 17:51:23 +1 bramus 17:51:23 bramus (IRC): I want to underline what tab said; authors are really bitten by this. Longstanding problem, would be so helpful for authors 17:51:23 ack bramus 17:51:25 ack fantasai 17:51:56 fantasai (IRC): proposed resolution is that we account for scrollbars when overflow is scroll on the root element directly, or when scrollbar-gutter is on the root element directly, and we don't handle propagation? 17:52:09 fantasai (IRC): i.e. we don't account for scrollbars propagated from body to root 17:52:11 proposed resolution: if overflow:scroll is set *on the root element* (not propagated from body), account for the default scrollbar width in the size of vw. Also take scrollbar-gutter (and scrollbar-width, the property with "normal" and "thin"?) into account on the root. Ignore all of these in MQs. 17:52:20 q+ 17:52:22 emilio (IRC): and should this account for scrollbar-width on the root (not the webkit scrollbar pseudos) 17:52:35 ack chrishtr 17:52:39 TabAtkins (IRC): my proposed rsln agrees with that, yeah 17:53:02 chrishtr (IRC): (talks through resolution) 17:53:19 chrishtr (IRC): this would apply to iframes? 17:53:22 TabAtkins (IRC): correct 17:53:23 q+ 17:53:55 bramus (IRC): not sure about scrollbar-gutter:stable scenario; then you reserve space on left edge as well 17:54:02 bramus (IRC): then you might get an overlay that doesn't paint on the left side despite 100vw 17:54:16 TabAtkins (IRC): that's what you're asking for if you use that value 17:54:18 florian (IRC): yup, that's what it does 17:54:27 Screenshot: https://user-images.githubusercontent.com/213073/202724538-b20f14bd-489e-4e6f-a9df-519d4a11e617.png 17:54:30 florian (IRC): if you use "stable both", that is 17:54:43 chrishtr (IRC): but if you don't use "both", it just goes on the side where it normally appears 17:55:02 bramus (IRC): see screenshot. Then you can't paint something in the left there? your overlay won't be entirely overaying 17:55:22 TabAtkins (IRC): That's because you're explicitly asking for that space. width:100% won't fill that space either 17:55:30 TabAtkins (IRC): there are other ways to handle this. 17:55:36 emilio (IRC): fixed-pos would handle this too 17:56:07 fantasai (IRC): I see bramus's concern; you want your content to be inset away from the scrollers, but if you have an article with images every so often that should stretch the width of the screen, maybe you want them to cover the gutters 17:56:19 fantasai (IRC): you might need to set scrollbar-gutter on a more inner element to get that behavior 17:56:39 or we could add another unit in the future if this situation is common 17:56:49 seriously, this is an explicit request from the author to not let them use that space 17:56:51 q+ 17:56:54 florian (IRC): auto scrollbars are weird. the traditional tradeoff is you get to use all the space, but layout is unstable. This gets you the reverse; stable layout, but you can't use all the space. Not amazing, but you have to pick 17:56:58 +1 TabAtkins 17:57:09 bramus (IRC): maybe this is an edge case. I'm fine if we couldn't draw in that area 17:57:12 q? 17:57:19 I think the issue here is that `scrollbar-gutter` only applies to scroll containers. If it applied to all elements, we could solve bramus's problem cleanly 17:57:23 ack emilio 17:57:25 you can absolutely fill that area with multiple methods, just something placed via normal flow with a 100vw (or 100%) width won't fill it 17:57:36 emilio (IRC): do we need viewport units, when used on the root, not to account for the scrollbars? 17:57:50 emilio (IRC): generally we wouldn't need this restriction, with new fancy calc and stuff, it seems like it might not be needed? 17:58:05 emilio (IRC): similar to root em units and root line height; we avoid them introducing a dependency... 17:58:18 q? 17:58:19 TabAtkins (IRC): giving access to full viewport width, ignoring scrollbars 17:58:45 emilio (IRC): does that need to be the behavior to avoid cycles? The properties we're depending on are only keywords, which is ~fine, but I'm not sure if you can introduce a weird dependency with calc 17:58:59 ack miriam 17:59:09 miriam (IRC): some truth to if you set 'stable' you're asking not to use that space 17:59:31 miriam (IRC): this is why people in the threads keep asking for a gutter-end variable, so you can choose which one and use the space if you want 17:59:45 duga has joined #css 17:59:47 florian (IRC): so the variable would be the gutter size? right 18:00:13 bramus (IRC): you could use it to see if the scrollbar is there... an automatic solution here is way better 18:00:31 TabAtkins (IRC): let's not let the perfect be the enemy of the good. Don't design for the corner case of 'both always' 18:00:33 +1 to what tab just said. 18:00:34 +1 18:00:42 TabAtkins (IRC): can we resolve here and handle this corner case in another issue 18:00:53 proposed resolution: if overflow:scroll is set *on the root element* (not propagated from body), account for the default scrollbar width in the size of vw. Also take scrollbar-gutter (and scrollbar-width, the property with "normal" and "thin"?) into account on the root. Ignore all of these in MQs. 18:00:53 fantasai (IRC): as an issue in the scrollbar spec maybe 18:01:28 Rossen_ (IRC): and the 'both always' issue will be an open issue 18:01:53 s/in MQs/in MQs, and maybe also on the root element (we'll see)/ 18:01:56 emilio (IRC): can we include "...and also ignore all of these when using vw units on the root element, if necessary" 18:02:01 Rossen_ (IRC): objections? 18:02:21 great! developers will be thrilled 18:02:22 And note: explicitly reversing the resolution from 1766 18:02:22 RESOLVED: if overflow:scroll is set on the root element (not propagated from body), account for the default scrollbar width in the size of vw. Also take scrollbar-gutter (and scrollbar-width, the property with "normal" and "thin"?) into account on the root. Ignore all of these in MQs. and also ignore all of these when using vw/vh units on the root element, if necessary 18:02:41 Rossen_ (IRC): look for topics for long call please 18:03:10 TabAtkins (IRC): meeting: Feb 12-14, in MV, on Google Campus 18:03:47 Zakim, end meeting 18:03:47 As of this point the attendees have been PaulG, bts, Rossen_, (IRC, only, for, now), flackr, emilio, miriam, dbaron, YehonatanDaniv, chris, dholbert, oriol, tantek, alisonmaher, 18:03:50 ... chrishtr, jfkthame, plinss, SebastianZ, lea 18:03:50 RRSAgent, please draft minutes v2 18:03:51 I have made the request to generate https://www.w3.org/2023/11/29-css-minutes.html Zakim 18:03:58 I am happy to have been of service, Rossen_; please remember to excuse RRSAgent. Goodbye 18:03:58 Zakim has left #css