W3C

– DRAFT –
Cascading Style Sheets (CSS) Working Group Teleconference

30 October 2026

Attendees

Present
cbiesinger, davidjmarland, dbaron, dholbert, dshin-moz, emeyer, flackr, front-endian-jane, JohnJansen, kbabbitt, kizu, kurt, lea, miriam, oriol, rachelandrew, romain, seokho, SimonSapin, smfr, TabAtkins, ydaniv
Regrets
-
Chair
-
Scribe
emeyer, emilio, TabAtkins, fantasai

Meeting minutes

<JohnJansen> we will start in a couple minutes with the Custom Highlight API discussion

github-bot, take up 14613

<github-bot> emeyer, I can't comment on that because it doesn't look like a github issue to me.

<astearns> github-bot, take up w3c/csswg-drafts#14613

Proposal: Custom Highlight API Extensions

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14613

Applying visual effects to text have examples like editing tools

kbabbitt: (above line)_

kbabbitt: Usually, every word gets wrapped in a span
… Been exploring solutions to do this better
… Ran into some big i18n concerns
… I looked into the Custom Highlights API and I think it could work with some additions
… 1. animation/transition; 2. opacity; 3. range highlighting
… Animations/transitions could be done with standard CSS properties for such
… Interesting thing is that when a range boundary moves, it doesn’t change the timing of the effects
… Animations are per-highlight registry entry
… It should all work for highlight ranges like it does for regular elements
… opacity is interesting because of how highlights already work
… When higlights overlap, they interleave
… Background, then shadows, then under/overline, then color, then text effects
… If you set one highlight with opacity and the other not ,things break down
… My prototyping suggests that in these cases, pick just one that wins and apply it
… Similar to how we decide which color wins
… Last thing, per-range highlight styles
… If you’re trying to apply different styles to different highlights, [???
… You could drive through a JS loop
… The issue is that you’re now tied to the main thread which can cause jank and may be incompatible with author intent
… Desire here is to have an incrementing delay for each word in a paragraph
… Solution is to allow having an inline style on an element, per-range, which is within the higlight
… Mapping from range to css style declaration
… This would take precedence over any highlight rules in your stylesheet
… With these three things together, you can get staggered animation
… [shows example CSS]
… [then some example JS]
… This uses the compositor same as if we were applying opacity to spans

emilio: I like this but wonder about animations
… Is the proposal that they would be tracked per range, per highlight type?

kbabbitt: Answer is yes
… Tuple of original element, highlight, and range

emilio: So each range animates seperately, so why do you need the originating element?

kbabbitt: Because the highlight could be applying an animation the element is applying styles to

emilio: Highlights API gives you type to range map
… THe same range can’t be styled differently
… If you have a range that spans multiple elements, you can span different parts of the range differently

kbabbitt: You can have multiple highlights in the same range
… Each would run its own animations

emilio: Imagine you have animation color in parent::highlight
… That still needs to inherit to the span::highlight style

kbabbitt: For color specifically, if there’s overlapping higlights, we pick a single color

emilio: My point is it’s the same range and highlight, but you have parallel highlights

kbabbitt: If you have two overlapping highlights, one is animating color and the other background color, those can run on two different sets of parameters

<Zakim> fantasai, you wanted to ask how opacity decides a winner

fantasai: How do you decide winning opacity?

kbabbitt: Topmost highlight

fantasai: Opacity is a range of 0 to 1
… How do you decide 1 verus .999? You can create a discontinuity

kbabbitt: Saying if there’s an opacity in the highlight rule…

fantasai: We don’t track that

kbabbitt: We could track it

emilio: The spec says you’re not supposed to track those because there’s not supposed to be a difference
… I thought the whole point was to get rid of some of those pieces

TabAtkins: Could fix it by addint 'auto' to opacity, not an initial value, but make it initial on highlights

<Zakim> astearns, you wanted to ask whether the amount of script is OK

astearns: I still don’t like the opacity use case, but am convinced by the word-by-word use case
… Have you looked into ways to reduce the JS?

kbabbitt: Not as yet, but definitely open to suggestions

<TabAtkins> iank

IanK: Every product has a different idea of what a word is
… Whatever we specify we’ll probably get wrong

fantasai: Is there an API for splitting a DOM range into multiple ranges?

kbabbitt: I don’t think so

fantasai: A lot of this logic could be simplified if we did

kbabbitt: That is an interesting idea

<fantasai> array of DOMRanges = DOMRange.split(Intl.segmenter or array of offset indices)

kbabbitt: What the JS does is stores a list of offsets
… I don’t see there’s a reason not to have a splitter

fantasai: TO make it powerful, you have to be able to pass in an array
… If you want to make it easy, you could say give me an Intl.segmenter configuration and I’ll use that to do segmentation

TabAtkins: This is better than previous iterations on the idea
… A lot of problems came from CSS tr4ying to dictate
… I like this direction a lot
… We’ll need to fix some things, and I see a lot of non-AI-prompt use cases here

smfr: THe endpoints might be in different stacking contexts

fantasai: I think you have to split it
… This is like taking a highlight and breaking it down into smaller sequences
… It’s like having 145 different highlights with different names
… But we’re allowing you to address them at higher-level APIs

smfr: I’m thinking of a single highlight

fantasai: At that point you’re jsut doing opacity on text, abckground, and decoration

smfr: So you’re changing the text alpha?
… It’s opacity applied to text rendering, so it’s not really opacity and won’t have stacking side effects

kbabbitt: To clarify, it is opacity in the layer sense, so we composite

<fantasai> opacity applies to highlight text and backgrounds and decorations all composited together

kbabbitt: It’s not creating a stacking context

<fantasai> doesn't affect anything below that or outside that

kbabbitt: It depends on how the engine actually works
… I do want to be able to apply it

smfr: Wonder if we should invent a new property for this kind of opacity

fantasai: You’re compositing text and its decorations and stack of highlight backgrounds
… For fill-stroke whatever, you’re applying other things
… This also includes the background

kbabbit: You could imagine not just fading in words, but other things
… It’s easier from an author perspective to just do it once

GameMaker: What trips me up is the styling range
… That feels fundamentally wrong to me
… If you want a different style, you should have a different highlight
… I get what you’re trying to do and don’t fundamentally disagree, but the second you allow styling for range the concept of a highlight falls apart
… I don’t like styling per range if there’s a way to animate each part of this highlight
… I want all the highlights to have the same style

kbabbit: I’d be open to doing that

<Zakim> TabAtkins, you wanted to react to GameMaker

TabAtkins: I’m curious about the source of your intuition
… Highlight ranges is a group under a name, and this is inline style on an element
… That feels like a decent metaphor, but would like to know more

GameMaker: There’s language about modifying ranges but nothing to stop a designer from stuffing aqll their highlights into one highlight

TabAtkins: My confusion is that feels erxactly like we should let everyone style everything with a class, not an inline attribute

emilio: Difference from that model is you’re keyed on the highlight
… You go through the highlight to get to the range, which is weirder?

TabAtkins: The cascade model is a little different, but it doesn’t feel to me like that’s fundamental

emilio: It would be more parallel if the style wasn’t the range
… Highlight will get range style something, specific to a particular highlight

fantasai: The idea is each name highlight is a conceptual thing that has a meaning, whereas the DOM ranges are intended to be the way you get to an effect
… To get there, you have to style different pieces differently

<Zakim> fantasai, you wanted to react to TabAtkins to ask about accessibility support for named highlights

…Question: what is the a11y support for highlights right now:

<TabAtkins> dandclark:

dandclark: There’s a property on highlights that the developer is supposed to say the meaning of the highlight
… You can say it’s a grammar error, spelling error, etc.
… These map into things ATs support, but there’s a few common buckets
… That’s why it makes sense for this to be at the hihlight level

fantasai: So if you split into multiple named highlights, you could create confusion at the sematic level
… If you’re doing something semantically meaningful, don’t do it in ranges

<astearns> https://drafts.csswg.org/css-highlight-api-1/#highlight-types

emilio: Not clear to me the painting model
… If you have a context with two different opacities, you pain decorations in each context
… Would this proposal still do that?
… You’d apply opacity independently on erach part of the range?

kbabbit: Taking highlighted subpieces and pulling them into their own layers

emilio: You’d apply to each part of the shadow?

kbabbit: Yes, like if you have two elements with two different shadows

emilio: Single range that spans multiple elements, with a single shadow decoeration, that paints the shadow individually on each stacking context
… I guess you’re still pulling opacity, but it doesn’t behave like regular opacity

kbabbit: Yeah, we’re not creating weird graphs

vmpstr: Potentially, you can have a paragraph with each letter fading in separately
… In the implementation, you have a layer for each letter
… As opacity finishes, you concentate that text into a single run or layer
… Each letter potentially has a drop-shadow
… Concern is it isn’t any better in the implementatio
… Not sure how well this feature will perform\

kbabbit: I expect it to be similar to if the author had wrapped everything in spans
… Efficiency is in the DOM/style side of things
… We’re not breaking text up into nodes and have to run the cascade

<astearns> spans at least do not have to coalesce

kbabbit: We can do our effect and not have to clean up

vmpstr: Stuff that happens with layering in the compositor is also slow, in my experience
… API makes it too easy to do this

kbabbit: I think the author is going to buiold the effect either way

<astearns> authors are already introducing markup for this :(

dandclark: We see this pattern on the web now with AI chatbots and stuff

seokho: What getRangeStyle returns when cross element range that having different inherit style property from subtree parent?

kbabbit: It’s a decoration, so it’s like inline style on elements
… Doesn’t ingteract with underlying elements

florian: Author POV, I see why this makes sense
… Concern is that you can’t tell whether there’s a long range or two short ranges or overlapping ranges
… Fact that you can style differently ay prevent some optimizations
… When your ranges overlap, it gets tricky
… We have priorities to figure out conflicts, but overlapping ranges styled differently loses control
… Other than that, I like it
… Just not having range priority gives me pause

GameMaker: I think that explains the concern I was having
… Some of the infrastructure falls apart when you allow per-range styles
… If there’s ways to push that styling into the highlight as a whole, then I think it’s okay to have time-based animations
… I don’t think we can allow per-range styling without opening this can of worms

<fantasai> I think we shouldn'tallow overlap

kbabbit: Are range added to a highlight

GameMaker: Yesw, it’s an ordered set

kbabbit: Can we say layer one wins?

GameMaker: It’s implicit, but still feels messy

dandclark: It’s how we prioritize highlights

smfr: How does this relate to text transitions and animations proposal?

<smfr> https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/CSSTextTransitions/explainer.md

kbabbit: I’m shelving that proposal

JohnJansen: I think we have consensus this is good to pursue, but still have some challenges

kbabbit: I’m curious to know what specs this would go into

fantasai: I think highlight things should go into the pseudo specs
… The range should go into Highlights level 2
… Do we have an editor for Highlights?

florian: It’s me

dandclark: I can help out there

astearns: I’d like to see a response in the explainer to the priority concerns raised here

dandclark: Could we resolve to add opacity?

<dandclark> Proposed resolution: Custom highlights should support opacity

<dandclark> Proposed resolution: Custom highlights should support opacity, details TBD

<dandclark> Proposed resolution: Highlights should support opacity, details TBD

vmpstr: (question missed)

<dandclark> Proposed resolution: Highlights should support opacity, which changes the opacity of the highlight background and the text and the text dedoration, details TBD

RESOLUTION: Highlights should support opacity, which changes the opacity of the highlight background and the text and the text decoration, details TBD

kbabbitt: Can we address animations?

<kbabbitt> Proposed: Animations and transitions should be allowed on highlights

vmpstr: Does that include the staggering per character thing, or a separate thing?

fantasai: Just that the properties would apply generally

JohnJansen: Objections?

<kiet> +1

RESOLUTION: Animations and transitions should be allowed on highlights

<seokho> +1

kbabbitt: We need to keep talking about per-range discussion
… Question is whether there’s a new level of pseudo

fantasai: Maybe we can talk about that and come back with suggestions

github-bot, take up w3c/csswg-drafts#14442

[css-mixins] Types for private properties (in mixins and elsewhere) and probably function locals

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14442

TabAtkins: We have in both functions and mixins, you can declare a type and an intiial value for arguments
… Exactly as if you had registered a custom property
… We didn’t provide a way to do that for things in the body of the function or mixin
… We have pretty good agreement in the thread, need to get a resolution
… Proposal is to allow @property to be nested into private blocks and function bodies
… Also to define the shorthand property registration block we’ve gotten agreement on
… Exactly equivalent to declaring a property with that name and value

<kizu> +1 to both

TabAtkins: this gives you a short and easy way to register properties
… Would like to resolve on both

emilio: I find a lot of times I tell people to use @property to avoid footguns
… It would be nice to allow inheritance down

TabAtkins: You can only stash so much in here before grammar confusions
… For these use cases, that’s much less of a problem
… functions will inherit into other things in the same lexical block scope
… I don’t think we can solve the grammar problem in a readable and extandable way

emilio: Have we considered something more like @import?
… You could do @property --main (initial value)

TabAtkins: Haven’t considered that, since it’s very close to writing the full block normally
… I think it’s nice to keep this alighed to how properties and values look

miriam: Don’t we have a type function?

TabAtkins: You only use that for disambiguation purposes

fantasai: Is this available to things outside the function?

TabAtkins: It’s available anywhere you can write fresh properties

fantasai: In that case, controlling inheritance seems useful
… What is the default for a declared property? Inherited or not?

TabAtkins: Inherits by default

<TabAtkins> @property --foo <type>: value; ==> @property --foo { syntax: <type>; initial-value: value; }

<TabAtkins> literally exactly the same, just a little longer to write.

fantasai: If you could put a keyword after @property, there would be no syntactic ambiguity

<fantasai> e.g. @property inheritable --foo <type>: value;

lea: Might be useful for members who haven’t followed this closely to explain which parts are new and which are existing
… I think I’m unclear on which part of this proposal is the delta

TabAtkins: The delta is what’s in my comment, because everything else has been proposed and accepted

lea: Is the proposal to have the @property there?

TabAtkins: Yes

fantasai: It’s two different proposals

TabAtkins: Yes

lea: Is the idea the second is short for the first?

TabAtkins: No

lea: It seems fine to me

<romain> we didn't expect much questions about this I guess :D

lea: I think the @property makes a lot of sense in there
… I’m a litlte more skeptical about the second one, but not opposed

<TabAtkins> PROPOSED: Allow @property to be nested in @private and in @function bodies, where it provides a definition for the private var.

JohnJansen: Please propose separate resolutions one at a time

<kbabbitt> +1

<romain> +1

<kizu> +1

RESOLUTION: Allow @property to be nested in @private and in @function bodies, where it provides a definition for the private var.

<TabAtkins> PROPOSED: Define the @property --name <type>: initial-value; shorthand form of the @property rule.

<davidjmarland> +1

<kbabbitt> +1

fantasai: I think we should have control over inheritability if we’re going to add this

<romain> @property --name <type>: initial-value !inherit;

TabAtkins: No objection if we can do it unambigiuously, but want to tie it to the argument syntax

<kbabbitt> `@property inherits --name <type>: initial-value;`

fantasai: I agree this needs to be a subset of whatever we’re going to do

<TabAtkins> PROPOSED: Define the @property --name <type>: initial-value; shorthand form of the @property rule. Separately , look into specifying inheritance in this syntax.

Break

<TabAtkins> github-bot, take up w3c/csswg-drafts#14442

[css-mixins] Types for private properties (in mixins and elsewhere) and probably function locals

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14442

RESOLUTION: Define the @property --name <type>: initial-value; shorthand form of the @property rule. Separately , look into specifying inheritance in this syntax.

<TabAtkins> github-bot, end topic

github-bot: take up github.com/w3c/csswg-drafts/issues/14370

<github-bot> emilio, I can't comment on that because it doesn't look like a github issue to me.

github-bot: take up w3c/csswg-drafts#14370

[css-mixins] Should empty arguments be valid?

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14370

TabAtkins: as the comment says
… currently the spec defines a dash function with arguments as <declaration-value>#?
… it ends up accidentally requiring a non-whitespace token
… you can't pass single empty args
… seems odd given arguments are like custom props and there's reasonable use cases for empty args
… want to fix it but there's other complications
… if arguments can be empty what's an empty argument list, is it 1 empty arg or 0 args
… that's relevant because too many arguments is an error
… don't look at the OP, at the end there's the updated proposal
… tldr do exactly what JS does
… js allows trailing commas on args, and in array literals it's empty value
… if you have a trailing comma it doesn't define a final item
… [shows example]
… proposed same semantics as JS
… so transferable
… useful in and out itself
… it solves our problem
… fully empty arg list is 0 args
… if you want an explicitly one arg you'd do that by putting a comma
… let's put trailing commas after all arguments
… for the same reasons it was good in JS I think it's useful in CSS

<TabAtkins> emilio: it seems nice, but does that mean we should support trailing commas on all CSS functions, or is this specific to custom functions?

<TabAtkins> emilio: it feels weird... the way CSS is tokenized doesn't have the concept of args

<TabAtkins> emilio: delimiters are used pretty randomly, like just yesterday we used a colon

<TabAtkins> emilio: so it seems fine to restrict to custom funcs, but scares me a bit to generalize

<SimonSapin> --(,) needs a name, it’ll be a friend of rust’s turbofish ::<>

<TabAtkins> emilio: well, would be nice to generalize, but it's more complicated

<TabAtkins> emilio: have to fix a lot of parsing code

TabAtkins: as part of this it's limited to @function / @mixin

<TabAtkins> w3c/csswg-drafts#13851

TabAtkins: but we have a wider issue
… I think there's a root to it
… but that's a separate issue, can go either way
… I don't think it impinges our decision here

lea: supportive of the change
… it'd be great to all of CSS
… but I think even if we do it for specific things it's still a win
… even if the plan is doing it for everything we don't need to do it all at once
… great that it brings CSS closer to JS
… authors would often try this things and then be surprised

PROPOSED: Adopt trailing comma rules as written in the final comment of the issue

<kizu> +1

<davidjmarland> +1

<fantasai> w3c/csswg-drafts#14370 (comment)

romain: it's only the first or is whitespace trimming included?

TabAtkins: leave out whitespace trimming for now

PROPOSED: Adopt trailing comma rules as written w3c/csswg-drafts#14370 (comment), minus whitespace trimming

RESOLUTION: Adopt trailing comma rules as written w3c/csswg-drafts#14370 (comment), minus whitespace trimming

romain: so do we want to trim whitespace?
… currently with custom props you have invalid, which is empty, or a space which is valid-but-empty

<kizu> Right now custom property are valid with total empty value

TabAtkins: the distinguish between totally empty and whitespace has been fixed a while ago, and browsers are consistent
… both totally empty and whitespace are both equivalent and valid

romain: how do space toggles work?

TabAtkins: not sure

kizu: the space used to be required
… right now the space is not needed for `--foo:` and `var(--foo,)` both work in all browsers

<romain> thanks Miriam

emilio: so space toggles don't work?

miriam: you need to do `initial` for them to work

github-bot: take up w3c/csswg-drafts#12671

[css-mixin-1] How does Shadow DOM influence mixin lookup?

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#12671

kbabbitt: we've talked about this a few times

kbabbitt: do mixin lookups work across shadows?

kbabbitt: so can you apply a mixin within a shadow tree that's defined in the outer document?

kbabbitt: main concern raised with this is the potential perf implications associated with invalidation, if the parent's stylesheet comes in late, or the author modifies the rule in cssom, etc

kbabbitt: we'd have to go redo things in the shadows

kbabbitt: we have some impl experience with it now

kbabbitt: one thing pointed out is that mixin lookup in blink was a little too broad and would sometimes find the wrong thing, it's fixed now

kbabbitt: and our invalidation logic now is pay-for-play, we can invalidate only shadow trees referencing a particular mixin

kbabbitt: in terms of costs, there's numbers in my comment, but if we invalidate 100 shadow trees with a mixin that's 22ms; per invalidation that'sa bout 1.5 style calcs. We see lots of style calcs from large invalidations all the time

kbabbitt: so i'm not concerned about the perf. authors have been asking for this quite strongly, loit of examples in the spec

kbabbitt: so I propose we adopt this. loosely-matching lookups are the default anyway

emilio: my main concern is that this isn't quite a regular at-rule...

emilio: it's an at-rule that can create other rules in the tree in which they're referenced

emilio: so it feels a bit like a violation of the encapsulation... you can introduce arbitrary selectors in a random shadow tree

emilio: I think authors are wanting it because it's a workaround for using outer stylesheets in a shadow tree, and there are proposals for handling that like CSS modules

emilio: it also impacts... I think we should have a consistent answer for this and @custom-media/etc that affects stylesheets

emilio: everything's implementable, but it seems like authors want this because pulling a stylesheet into a shadow tree is annoying, and it feels like mixins are a bad use for that

kbabbitt: I heard two points.

kbabbitt: One was about authors using this as a workaround, the other was difference in degree about what an at-rule can do across shared boundaries

emilio: right, so what is the originating shadow tree of a name specified in a mixin that gets pulled into a shadow

emilio: so if we have a tree-scoped name... it could come from the outer tree (where the mixin is defined) or inner tree (where it's used) and both potentially make sense to me

emilio: if you do syntactic rewriting you're injecting into the shadow tree, which might be what we want

<Zakim> kbabbitt, you wanted to respond

kbabbitt: sure, by name.. we'd have to decide what that means

(it should be where the mixin is used)

(the rules aren't "real" until invocation occurs)

kbabbitt: I think this is orthogonal - it comes up with the alternative where you include a stylesheet with your mixin everywhere

emilio: No, then it's clearly different instances

<Zakim> TabAtkins, you wanted to react to kbabbitt

<emilio> TabAtkins: intended semantics from me is that mixins include things directly, so the references start from inside the tree when they get used

<emilio> emilio: so like including the stylesheet directly

kbabbitt: The other point was around authors using this as a workaround

kbabbitt: I disagree with that. There's comments in the issue and in a previous discussion - there was pushback in Redmond about using adoptedStylesheets for this.

kbabbitt: authors don't want to have to write little stylesheets that just include their mixin and include them everywhere.

emilio: the last comment on the issue is an example of injecting a style rule into a shadow

lea: same point about workaround - there are valid encapsulation use-cases where you don't want to share stylesheets but still want to pass around blocks

emilio: that's a stylesheet with a class...

lea: how does that work with a web component?

emilio: you import it into the style tree.

lea: I think that's jumping thru a lot of hoops to work around something that's pretty intuitive this way, where they just inherit thru the shadow root

lea: even if they could be worked around

emilio: i'm happy to consider that point, but all the examples I've seen are easy to resolve if you have easy imports

<emilio> TabAtkins: that applies the same to a bunch of other things

TabAtkins: Argument applies the same to other things. E.g. font face lookups could be resolved by saying they're strictly scoped to the tree

emilio: But there's no alternative to that
… @font-face doesn't work on an element
… you can't import into shadow tree

TabAtkins: that's a bug

emilio: We'd need to figure out how the OM APIs work, what does it mean to have different font faces with same name and different trees.

TabAtkins: Any of the name definiers, currently using loose matching
… exactly equivalently (other than OM issues)
… could say that "you can't match, import your styleshet"
… but that sucks to do
… it's nice to use directly
… especially when you're not using shadow DOM as an encapsulation boundary
… because everything is first-party

emilio: Mixins are different to these other name-defining things
… the others apply past the styling
… they're on the flat tree
… they don't have this concept of rewriting the contents of your style sheet
… custom media and supports also have this issue
… don't think we have a solution for those

emilio: This *is* implementable.
… Use cases I've seen seem easy to achieve if you have an easy way of importing stylesheets into your shadow tree
… I won't object, but we do need a consistent model
… for how these CSS-affecting constructs affect shadow trees

<kbabbitt> w3c/csswg-drafts#14230

TabAtkins: Considering making more clearly how this work, working with kbabbitt

kbabbitt: I opened a separate issue for that

emilio: Mild concern, surprising to me if appending a style sheet to the main document affected a bunch of shadow trees
… I guess inheritance does that?

TabAtkins: It would only affect if you are adding a mixin that doesn't already exist

emilio: As browser developer it's ...

TabAtkins: But as an author???
… Not surprising.
… If I provide something, I expect it to be ued

emilio: Problem is amount of time things takes is linear to the number of shadow trees

TabAtkins: It's not difficult to put together a pay-as-you-go model

emilio: You still need to go down and see which ones use it, but saving work sure

JohnJansen: Would you like to propose a resolution?

<kbabbitt> Proposed: Mixin lookup follows loose matching

emilio: [something uninteilligible]
… considering slotted and stuff, presumably you don't care if you're in a slot?
… you don't need to do fancy things, like this is applying things to a slotted element so need to look in original tree vs shadow tree ...

TabAtkins: This is all well-defined by the "loose matching" rules

emilio: I just want to make sure that potentially surprising behavior like slotted thing
… expecting mixin from outside to apply

TabAtkins: What "loosely matched" is defined to do

emilio: But for slotted element ...

"loosely matched" is not relative to styles in any way

PROPOSED: Mixins use loose name matching

it's purely dom structure

RESOLUTION: Mixins use loose name matching

emilio: I think we all agree, just want to make sure

Color

<emilio> github-bot: take up w3c/csswg-drafts#14545

[css-conditional-5][css-color-4] `@supports named-feature(gamut-mapping)`

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14545

<emilio> lea: it's taken enough time to ship gamut mapping that we need to detect whether it's present, otherwise they limit how they can use color

<emilio> ... e.g. if they're creating scales for an accent color, gamut mapping makes it easier

<emilio> ... but as an author I'd like to detect and fall back to desaturating or so if gamut mapping is not present

<emilio> ... we need to provide some way to detect it, needs to be a named feature

<emilio> ... we can always add more granular things later

<emilio> ... but main thing would be any gamut mapping is present

<emilio> emilio: it's easy to do, though I'm a bit skeptic that people are going to use it? Usually named features are for when not having the feature would break badly

lea: there are cases where things are broken, it's not just aesthetic. a11y can be broken because distinct colors become too close togher or identical.

emilio: do things break between mapping algos? do you care which one?

lea: they're designed so the diffs are small and generally wont' matter

lea: Firefox does this thing where it gamut-maps to rgb even on a p3 screen, but that' s detectable with (color-gamut)

lea: so it could still be buggy but that's true of all new features, this isn't a unit test

lea: this is also separate from canvas, you can detect mapping gin canvas so we dont' need it there

Romain: I agree with this but I would like to defer adding it

romain: I think there will be many issues filed against gamut mapping because the space is so massive

romain: too many cases in Firefox, especially in gradients, where the results are too variable

lea: if we hold it back too long it loses its value. authors want to use features when they're there

<Zakim> lea, you wanted to react to romain

romain: the added value is when it works. if it doesn't work yet, then people need to care about that

emilio: so it does matter what gamut mapping to use?

astearns: no, Romain means it matters *where* it applies

emilio: I think we apply mapping to gradients?

romain: the spec says "do gamut mapping", not strict details about exactly when it happens

romain: so it's a little handwavey and i'd like to see some eimpl experience

astearns: I think a way forward is to specify this, but then enumerate the ways in which gamut mapping must be supported before this can be considered true

astearns: not as concerned about bugs

<Zakim> lea, you wanted to react to lea

astearns: but if an engine decides they'll support mapping in stages, starting with 'color' but maybe not gradients yet, they shouldn't be allowed to say "true" for the feature

lea: one thing i'm seeing is that while the mapping algo doesn't matter much, the use-case can matter

lea: so the way forward might be a specialized function, not a named feature

lea: so you can ask for specific things

lea: gamut mapping works well right now for plain colors, and I don't want gradients to delay that until we get everything perfect

lea: so if we need some way to distinguish that support, that's fine

lea: we could even add canvas to the list of values later, even

(we can just add more keywords if needed fwiw)

florian: meta-comment, but this is why initially when we designed @supports we didn't want to have an explicit list and answer tricky questions, and limited ourselves to "does this parse"

florian: in general let's use restraint with how many things we add where it's *possible* to debate support

<astearns> +1 to not proliferating named features

florian: this isn't an objection about doing this, we've crossed the bridge, but be careful when we do

romain: I don't think... in Firefox it's not doing colors and, separately, doing gradients. it's the whole thing

romain: and i'm not concerned by impl bugs, i'm concerned about conceptual errors. are we speccing the right things? problem space is so large that it's hard to predict the outcome. that's why I want feedback from authors

<astearns> for the record, ChrisL is in favor of @supports named-feature(gamut-mapping)

romain: so I'm just not sure we've covered the entire thing

emilio: confirming what Romain said, the confusing behavior is that we gamut-map the specified colors, then we interpolate them on the GPU, and we can't gamut-map the eintermediates the same way

emilio: to me it feels like... would that actually prevent you from using it? doesn't seem like a common enough use-case for this keyword to stop being useful

emilio: I wouldn't oppose holding off on shipping the named feature, but...

emilio: you either get author feedback before shipping, where we are now. or we get it afterwards

emilio: it seems like you're asking for something in the middle

emilio: if the existing algos unlock most of the value of the feature, i'm fine with shipping the named-feature

lea: another direction that might be palatable and useful is, instead of having a named-feature, introduce a color() function that introduces the gamut-mapping Algo for a specific color space

lea: and have a MUST in the spec that UAs must implement this at the same time as mapping

lea: then authors can use the function to detect support

lea: and can use conditionals to detect exactly what colors map to, do operations on the mapped color...

lea: like if you create color scales, for the lightest color you don't want to just set 97% lightness and then step the rest. you look at designer-created scales, you want to get a little bit lighter

mapped-color() ?

emilio: it seems like that's orthogonal to what Romain is saying, which is that mapping the colors you specify might not be enough

romain: sharing screen, top bar is what Firefox is doing

romain: so I want to see feedback whether this is acceptable or not

emilio: okay, but still we can only get feedback before or after shipping

emilio: are you arguing for holding off on shipping the mapping? or ship mapping but not the named feature?

emilio: I think that's a bit harder to argue. if the feature is useful, it seems detecting it is useful

romain: I think it's a bit troubling i'm the only one raising problem cases like this

romain: so if people aren't raising these issues, people aren't using nightly and turning on the flag

romain: this isn't that bad, I just want more feedback before we stamp it as working as intended

astearns: Elika pointed out we want to avoid a v1, v2 keyword version

astearns: also, chair hat off, I'd like to walk back my support for romain's point. I think it's okay to have a gamut-mapping named feature that has a certain amount of caution in the spec - make sure you have a reasonably complete mapping impl before you say yes to the feature. but there's gonna be problems

astearns: bugs that'll be addressed

astearns: we'll eventually be at a point where the named-feature is fully reliable for devs, but making some mistakes along the way will get us there sooner

romain: it's a temporary problem

lea: q about romain's demo - is this interpolating between oog colors? or using in-gamut colors whose interpolation is out?

romain: the specified colors are out of spectral locus

romain: when any color is outside the locus, you can get artifacts like this, it's not about the interpolation

lea: are you saying mapping single colors outside the locus gives these results?

romain: that's something i've been experimenting with. doing a clip to the locus reduces these artifacts

lea: if the bar for this feature is that it's bug-free, that's very high

lea: but as I was saying earlier, having the way to invoke mapping explicitly would also let you gamut map *before* interpolation

smfr: ideally when we add the named-feature we have a set of WPTs that tell us the named-feature and what goes together with that

<fantasai> +1 smfr

smfr: that runs into the next issue, testing gamut mapping

fantasai: couple of points

fantasai: is nightly shipping with it on?

emilio: currently flagged off

fantasai: okay shipping it on might get you more feedback that Romain is looking for

fantasai: next, I agree with Simon we should have a set of core tests that you need to pass before you should turn the enamed-feature on

fantasai: as to how to test, it might be manual testing

fantasai: we have a clever test from dbaron about testing box-shadow

fantasai: using a gradient above and below, clipping a small chunk of the shadow, saying it passes if the shadow is between the two gradients

<lea> PROPOSED: Add some way to feature detect gamut mapping, TBB what that is

JohnJansen: and that's a detail we'll talk about in the next issue

JohnJansen: so we have a request to pause the named-feature for now since it would be somewhat misleading for now

JohnJansen: thoughts? could explore alternatives in the issue

PROPOSED: Add named-feature() that requires passing a particular set of WPT tests TBD. ?

<romain> +1

astearns: we do all want to have this, unsure it's valuable to resolve that we do want to do it

JohnJansen: Elika proposed a different resolution, requiring a specific set of tests

JohnJansen: that would probably fix this issue?

lea: I think this establishes a weird precedent, we don't do this for any other named-feature

lea: if the feature is buggy we fix the bugs. we haven't set these conditions for anything else.

fantasai: I think that's because for everything else, the q of whether we support it is generally "do we even parse it". this is a much more fuzzy/quality thing

fantasai: so I think this is reasonable. not "all WPT tests", but a small set that test the core aspects

fantasai: I think that's pretty reasonable

romain: I was thinking of other named-features, they generally were already shipping a while and only later got the naemd-feature. this I think is our first named-feature for something new

romain: I was thinking maybe it should require two impls, or ship for N months, etc

JohnJansen: I don't think we should try and change the meaning of named-feature

JohnJansen: if we change these details, we're edging into the space of "this should be fully mature recommendation"

<astearns> PROPOSED: Add named-feature(gamut-mapping) with a note summarizing all of these concerns

fantasai: there *are* requirements about whether you can parse something. if you don't have a usable level of support you can't parse

fantasai: so there's some level of judgement on the part of the UA - do I support *enough* before they flip on parsing (and thus @supports

fantasai: we've had to tell impls to back out parsing support because their impl was too broken/incomplete

fantasai: named-feature is less tightly coupled, so we need to defined what it means

fantasai: doens't necessarily have to be WPT, can just be a list of requirements. needs to be as granular as that tho - map gradients in this way, map spot colors in this way, etc

JohnJansen: sound slike Lea's proposed direction?

fantasai: lea's proposal was vague

fantasai: there are many ways to do feature detection. for example, she proposed introducing a new color-mapping function, and require that to be tied to general gamut mapping, so then you can do parsing test for the function

<lea> +1 to astearns proposed resolution

JohnJansen: Alan also proposed a resolution a bit up, have a note with these concerns

astearns: i'm moving the tbd to non-normative text

lea: one downside of tying gamut mapping to the function is function would be easiser, and can help us design general gamut mapping

<romain> +1

<emilio> TabAtkins: I think we can go with alan's proposal

<emilio> ... support what fantasai was saying, while there is a bit of judgement, what you must do for support is parsing is relatively minimal

<emilio> ... and we should not be more strict for the named feature

<emilio> ... this is for the things that can't be detected via parsing

<emilio> ... it needs some judgement, we can have notes for what we consider to be usable

<emilio> romain: I don't feel so strongly, the burden shouldn't be excessively high

<emilio> ... but we need author feedback

<emilio> PROPOSED: Add `gamut-mapping` feature, and a note summarizing concerns

RESOLUTION: Add `gamut-mapping` feature, and a note summarizing concerns

<emilio> github-bot: take up w3c/csswg-drafts#14069

[css-color-4] How to make gamut mapping testable?

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14069

<emilio> lea: we've been discussing detection

<emilio> ... plan is to have very extreme failure, or can be tested via canvas

<emilio> ... we can have a separate function that forces the color to gamut-map

<emilio> ... which helps with testing and is strictly additive

<emilio> ... but it gives us a very direct way to test the gamut mapping algorithm

<emilio> ... propose to add a function to map to a specific gamut

emilio: exposing it seems potentially problematic, if we want to change it

lea: isn't that the same as doing mapping in general?

emilio: the point you start exposing the numbers to script there's more issues

lea: it's already exposed via canvas

emilio: that's a bit different. gamut mapping to a screen and canvas might be different

lea: tests currently use canvas tho

emilio: right, but testing with canvas isn't quite enough

lea: it's all we have right now

emilio: not necessarily. problem is WPT retests assume rgb right now. that can be fixed

<astearns> the function would allow testing of the algo, but not whether the algo is being run in all of the contexts where it needs to be

emilio: even without fixing it, we can still gamut mapping to rgb

emilio: the syntax might still be useful, but if we want to test the actual thing we need to support p3 output in WPT reftests

lea: sure if we want to do something specific to testing we need other solutions, but this also helps authors because they can do stuff to the mapped colors

lea: it also means if a browser is apprehensive about gamut mapping, they can ship this function as an escape hatch temporarily

dbaron's very cool test: http://wpt.live/css/css-backgrounds/box-shadow/box-shadow-blur-definition-001.xht

emilio: but what you want is gamut mapping in the output

lea: not saying it's a *good* thing

emilio: but what's the use of this function if you don't know what space you can output to?

<br type=lunch>

github-bot, end topic

github-bot, take up w3c/csswg-drafts#14569

[css-overflow] clamp at simulated height in the presence of floats

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14569

florian: General theme is we previous resolved on something, and we could stay with that, but it might b e more complex than necessary. want to reconfirm before we double down, or if we'd be okay with a simpler version

florian: in a clamping context, floats don't extend the context.

florian: if you have some text and a tall float on the side, if you clamp after 3 lines, you clamp there, even if it slices the float

florian: if you have four lines of text and the big float, you clamp at 3, you slice the float. if you line-clamp:4, you don't clamp, but you still slice the float.

florian: but what if you say line-clamp:10?

florian: originally spec said you get four lines of clamping, because that's how many lines you ahve

florian: then we resolved that we instead count the actual height of the 4 lines, then add 6lh, and slice the box/float *there*. grow the box to accommodate virtual lines

florian: can we do this? yes.

andreubotella: depends on impl details, but when you have the code that grows an IFC, you just limit that to the size you need

andreubotella: want to mention that the resolution from the group didn't explicitly say... it was slightly ambiguous. how florian described it is one interpretation. another is the container doesn't grow, but the float extends out to the 10-line height. that's probably worse tho.

florian: the spec as it is slices the float at the end of the line-clamp container, and doens't generally tyr to make things bigger if you ask for more lines that nyou have

florian: I have a PR that does have it grow. Do we want to do this?

florian: as andreu mentioned, it's an interpretation of the resolution. but do we want it?

astearns: for my clarification, if we don't extend to include the virtual lines, we'll just clip the float at the content height.

florian: yes

astearns: what does -webkit-line-clamp do?

emilio: depends on the engine

florian: we dont' count virtual lines.

astearns: I could also just see the legacy impl saying "we don't need to clip at all" and not doing naything

florian: those impls don't clip anything actually (they just set height)

florian: -webkit-line-clamp won't do any magic to accommodate floats. I don't think we should do it here.

<iank_> +1 to emilio

emilio: this seems like a case where you say clamp:X... it doesn't seem worth the effort. and I don't think the new behavior is particularly what i'd expect

emilio: this already messes with block layout, but... I don't think it's worth the complexity

miriam: if I was the holdup I don't need to be. think we're talking ina bstractions because we haven't seen a use-case.

miriam: a general issue with line-clamp, tho i'm not trying to block on that

florian: I don't think you were blocking, you were the inspiration

florian: the general idea is, if you have 3 lines and clamp to 10, you have 3 lines, cool. But if you have room for 10 lines and clamp to that, a float getting chopped early seems maybe weird

fantasai: [clarifying question]

florian: [repeats proposal]

emilio: do we have a test case for this? line-clamp establishes a bfc, so the auto height would encompass the height anyway...

florian: we resolved to not have that happen here, we'll slice the float

emilio: even if you clamp?

andreubotella: unsure we resolved specifically, but the spec does say that

florian: we did

emilio: big question is just, if you're not clamping to a line, why are you changing the height of the block

TabAtkins: Didn't we have this exactly conversation before?

SimonSapin: an issue too is we need to reserve space for 10 lines, but there's less text we want to reserve it, seems that should be a job for min-height. do we need line-clamp to do it too?

astearns: perhaps we could resolve on not doing virtual lines thing and discuss whether clamping applies at all?

florian: we... could. but that's the exact thing we tried to talk about earlier and resolved floats would slice. as a side-effect we discussed virtual lines

florian: id' prefer we just revert virtual lines, not the float clamping

astearns: proposed resolution is we revert the previous resolution and don't do virtual lines

TabAtkins: was the previous resolution just about virtual lines?

astearns: reviewing, no, not reverting the whole resolution. just changing to not add virtual lines.

<emilio> test-case: data:text/html,<div style="display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; outline: 1px solid;">ABC<br>DEF<br><div style="float: left; width: 10px; height: 1000px; background-color: purple;"></div>

<florian> +1

TabAtkins: if we did this, 3 lines of text, really big float, would clamp to 3 lines tall

astearns: yep

RESOLUTION: revert virtual lines (maintain float-slicing behavior)

github-bot, take up w3c/csswg-drafts#14551

[css-sizing-4] High level proposal for "shrink to fit" feature.

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14551

iank_: in issue 191 there's a long-standing request - when people build chat apps, they want the container to be tightly wrapped around the text

iank_: no way to express this in css

iank_: I have a proposal to do it

iank_: in this demo, the block box is tightly wrapped around the text lines

iank_: I propose we change how we calc max-conent

iank_: refreshes, max-content is lay out in infinite space and find the largest line. min-content is zero space and find longest line; aka break at every soft break opportunity

iank_: instead of 0/infinity, we want to give a tentative space to the lines and check if after wrapping

iank_: I have a prototype in chrome

iank_: this is changing the max-width, and it's tightly wrapping the text

emilio: in a way this is generalizing min/max-content, right?

iank_: yup

emilio: what'st he proposed syntax?

iank_: i'll get to it ^_^

iank_: a few ways to do it. could introduce a new keyword, so intrinsic sizing pass determines min/max-content and this new one

iank_: but for things that are implicitly fit-content, you'd have to opt them into manually

iank_: seem sunfortunate

iank_: we're proposing a toggle which has "normal | shrink-to-fit" and it changes behavior for the subtree

iank_: so whenever you go into a min/max sizing pass, you give it the available size, and as you go down the size you constrain it by the min/max of ancestors. when you hit inline content you linewrap and that gives a new max-content

emilio: I'd half expect to do the seaprate keyword... same way as fit-content(<length>), could imagine max-content(<length>)

emilio: but yeah that hits the issue when you go down the subtree

iank_: right, typically not what you want

<cbiesinger> so this affects the entire subtree. what if you have an incremental layout starting within that subtree, you have an unbounded walk up the tree to check this property? or is it an inherited property?

iank_: the ergonomic way is that things which shrink-to-fit should also honor this

emilio: so you'd cache... regular max-content or this constrained one

iank_: yes one reason we did this is it saves caching space, only two values to cache rather than 3

emilio: or N

iank_: yeah N, at any point you can start layout and need a size that constrains

iank_: it's not bad, caching-wise for block layout you can cache ranges

iank_: in this case, any value between this and the next breakpoint can be cached. not true for flexbox, i'll talk about that later, but high-level proposal

iank_: I wrote it in pseudocode somewhere in these issues

iank_: so when calculating min/max sizes you have a new input, i'm calling it tentative inline size (better name suggestions requested).

iank_: then you're constraints by min-inline and max-inline size

iank_: then you pass that potentially-changed tentative-inline size to your children. at some point you'll hit inline content, line-break it, and pass the size up

iank_: then it all works as specified

iank_: the initial, when you enter into min/max sizes, you have an available size you give as the initial available

astearns: before it scrolls too far off, Christian had a in irc

iank_: i'll g3et into this complication. for a sec, pretend this is inherited and you can turn it off.

oriol: this is something I've wanted a bunch, +1 to exploring solutions

oriol: this idea of changing max-content that currently is intrinsic, becomes an extrinsic component...

oriol: wondering if there could be an easier solution

oriol: was thinking this behavior of shrinking to become smaller than expected reminds me of what happens in table layout when you collapse columns

oriol: wondering if we could generalize the same mechanism.

oriol: there are of course already interop issues for that, especially WebKit isn't implemented...

oriol: but if we could share mechanisms, could help interop in tables

oriol: there could be diffs in behavior, presumably resolution of %s would differ in the subtree

iank_: i'm relatively familiar with collapsed columns code and how it affects min/max sizes...

iank_: there's a lot of very subtle complexity. I don't think we should try to merge.

oriol: in servo it seems considerably more easy to use the tables mechanism to add this

iank_: fwiw, the code to implement this for us is like... relatively trivial. the core in inline layout is maybe 100 lines.

iank_: then the work is just how to plumb the size thru the different min/max size passes

iank_: it's work, but not unbounded. relatively straightforward

sgill: I think high-level this makes sense

sgill: I think there's some syntax/naming issues we could work out, probably much simpler

sgill: couple questions. one is, in your subtree when you're computing max-content size, does this mean that things like %s and a-r are resolve able?

sgill: cyclic?

iank_: they're still not resolvable. it's the same as normal min/max content size for contribution.

iank_: so realistically speaking, only fixed px lengths will constrain

iank_: at the top of the three your CB is definite so it'll work, but in the rest it's not

sgill: do we want to make them resolve able?

iank_: don't think so. if you resolve against this new tenative size, you get weird behavior bc the %s start resolving differently between the passes.

sgill: I think the other thing is, you opt into this at the root of some subtree, you get this tentative constraint...

iank_: right, when some layout Algo calls "hey you, compute your min/max sizes", you start it with the available size (basically) and then as you go down the subtree you start constraining it by the min/max sizes you see

sgill: that's what iw as wondering about. do we want this tentative size specified differently, then it stays consistent thru the subtree?

iank_: I don't think so. this gets into the details of how we do it

iank_: if we have a flag to opt in the whole subtree, everything in the subtree gets switched to this behavior

iank_: so the complexity you're hinting at is, an element might have multiple cache slots for different inline sizes

iank_: so for *this* inline sizes from your parent asking, some element gets a tentative size and says "great, here's my max-conetent at this tenative", then another asks it with a different tentative size and it gives a different answer.

iank_: possible to shrink-to-fit the top-level, then also do it for a smaller layer

iank_: so that's the behavior - the whole subtree is integrated

iank_: the other approach is a new keyword, so things don't automatically upgrade

iank_: on the root you specify the keyword, but nothing inside of it has this beahvior, standard max-content algo

TabAtkins: We last discussed several weeks ago, I believe my thoughts were that having sub-things that ... a lot of layout algorithms implicitly invoke max-content or fit-content
… having those use the type of sizing that' you're requesting in general is better
… don't want a shrink-to-fit size, and have sub-elements get a larger size
… We've had several problems with needing to identify several places where you need to tweak
… eventually spam it on a * selector
… That's why I wanted a switch behavior. Would opt you into a desirable default behavior

iank_: yeah the failure mode is if you have something in that subtree with "width:max-content", it would overflow.

iank_: maybe that's fine, but we'r concerned about it

sgill: I think I like the switch more, yeah

sgill: what I was wondering about was, the tentative size, instead of being the max-width/available, could come from another proeprty

iank_: haven't considered it

TabAtkins: addable later

iank_: I think it's pretty natural to use the natural max-content constraints?

<Zakim> astearns, you wanted to ask whether this would open up a request for min-content-sizing

iank_: historical constraint, browsers pre-webkit did this, then WebKit did this max-content sizing and we all aligned

astearns: skipping past history

No, they didn't. They did this for *fit-content* sizing ...

astearns: trivial naming question, if we have max-content sizing, do we want min-content-sizing?

iank_: no

astearns: then we probably want a different name

fantasai: q, can you describe how this works on a row flex container

iank_: that's the next issue

fantasai: yeah I wanna understand what you're thinking about this first

fantasai: max-width 100px, two items with flex 2 and 1

iank_: thing to optimize for is, if you have a fixed flex item, like a 10px icon with text in another child

iank_: in the next issue I have a tentative algorithm - you compute min/max sizes (normally) for all your children

iank_: you then determine the free space when everything is sized to min

iank_: then look at the items, where their min and max content will be different (thus removing the inflexible things)

iank_: and you distribute the free space somehow (not yet nailed down, maybe evenly, maybe proportionally)

iank_: and use that as the tentative size

iank_: so for all the non-trivial... block layout is pretty easy, you just pass down the constrainted sized, everything gets the full inline

iank_: but for anything constrained - flex, table, grid - you have to

iank_: an idea was treat max-content as min-content and work out the free space, then give it again for tentative space

fantasai: is the tenative space for the items 100px?

fantasai: from the parent?

iank_: say the leftover free space is 50px...

fantasai: let's do 2 flexible items with a 2:1 ratio

iank_: somehow decide on dividing the free space

iank_: and then each gets those sizes as their tentative

fantasai: so their own min-content + the divided free space becomes their tentative

iank_: yeah

iank_: and that might not still be perfect but it's super hard to do ideal

fantasai: okay, main comment is I think this interface of things inheriting is really confusing

fantasai: max-content has a meaning for authors, it's the largest size

fantasai: fit-content is different, you fit into a space and just use the max-content

fantasai: but a max-content size is different. there are times when you really don't want something to wrap

fantasai: having this little switch changing that seems confusing

fantasai: if we wanted to change it for *fit-content*, that's probably okay. or adding a new content keyword. but changing max-content seems bad

flackr: this seems like a strictly better version of max-content

fantasai: it's a strictly better version of fit-content, not max-content.

fantasai: max-content's whole premise is we don't wrap at all

<dbaron> max-content today should consider a limiting width on a descendant

fantasai: the point of this is you have a limiting width

flackr: right so if you have max-width on any element

<dbaron> isn't this feature about a limiting width on an ancestor?

flackr: the content will wrap that max-width, right?

[scribe is confused]

flackr: so my comment is that I thought this was strictly better thing; did we need it just for compat?

fantasai: there are use-cases for actual max-content

TabAtkins: Agree, ths is a better fit-content than a better max-ontent

<dholbert> (flackr: max-content does take `max-width` on descendants into consideration, fwiw. example: data:text/html,<div style="border:1px solid black; width: max-content"><div style="max-width: 10px">aaaaaaaaaaaaaaaaaaaaa

dbaron: I think Rob got confused about ancestor vs descendant?

dbaron: max-content today does consider constrained widths on descendants

dbaron: but here we care about constrained widths on ancestors

flackr: ohhh that was my confusion, yes

kizu: no q about exact behavior, but +infinity for the feature

kizu: you can work around it today with scroll-triggered animations. terrible, don't do

kizu: so really good to see this.

iank_: we put it behind the experimental web platform features flag because eit's quite buggy right now

<Zakim> fantasai, you wanted to answer the compat question

<flackr> I think I agree that some sort of fit-content feels right from an authoring perspectie

fantasai: we did a bunch of investigation on this back when we did fit-content during 2.1, and I think compat did play into that

fantasai: but David might remember better

sgill: want to go back to elika's flexbox example

astearns: that is the next issue

sgill: ah k I can wait

TabAtkins: Unless details of flexbox and tables are vital for a decision, our preferred is to get a resolution on pursuing this in general
… and then go into the details

iank_: so probably resolve on a high-level approach - switch or keyword. that's largely orthogonal to the actual mechanics

astearns: so scoping to the pseudocode... does anyone have further questions

dholbert: one q - i'm curious if the Algo is... when your ancestor has a max-content cosntraint via this new feature.

dholbert: is this equivalent to the ancestor having a max-width, and we're calculating its max-content contribution for its own ancestor?

dholbert: would you go thru the same process?

iank_: the difference between this an dmax-content contribution is, you work out your min/max sizes for your child, then you apply min/max-width cosntraint on top

iank_: this moves resolving the min/max-width to before that step, before you ask your child for its contribution

iank_: that changes the tentative inline sizes you receive

dholbert: okay so I think the answer is "it's more complicated"

dholbert: seems naively it could be the same measuring, but seems like not

iank_: yeah not quite. when you work out the min/max-width normally you know the contributions of your children. but for this purpose you don't know that, so it's slightly different. but %s still don't resolve in either.

fantasai: so I still don't fully understand the sizing Algo, but happy to resolve that we should work on it.

fantasai: and happy for it to affect fit-content and automatic sizes, but not the min or max-content sizes

astearns: so proposed resolution is we continue working on this long-standing problem

iank_: and where would it live?

TabAtkins: Sizing 4

PROPOSED: Work on solving this as either a new keyword or a modification of fit-content and automatic sizes. Does not affect min-content or max-content.

sgill: based off of what we just said, does this mean it's a new type of size?

sgill: so not that we're calculating a max-content size but rather something else?

sgill: does that mean the Algo can be a little different based on the layout? not just max-content Algo?

iank_: if we do it with a new keyword, then instead of returning just two sizes from the intrinsic sizes Algo (min and max) you have to return 3

iank_: often the latter two will be the same

RESOLUTION: Work on solving this as either a new keyword or a modification of fit-content and automatic sizes. Does not affect min-content or max-content.

github-bot, take up w3c/csswg-drafts#14597

[css-sizing-4] tentative inline-size for flex layout

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14597

astearns: let's just start on this discussion to provide context, not try to resolve on things

iank_: the only interesting case for flexbox is a non-wrapping row

iank_: a wrapping flexbox you can treat like a block. worst case every item ends up on its own line (and that would happen with max-content anyway)

iank_: and column isn't interesting, it's like block layout

iank_: but for non-wrapping row...

iank_: the q for all algos is, I got a tentative size from my parent, I need to calc a new tenative size for my children so they can give me a max-content size. how do I do it?

iank_: for flex items, maybe you can divide the available space evenly

iank_: if you have a fixed flexbox, tho, you'll be giving space t something that wont' use it

iank_: so the proposal is we find the free space

iank_: somehow divide that among the flexible items

iank_: if you have a fixed 20px child, you don't want to give it any free space, and give it all to the flexible sibling full of text next to it

iank_: and this rough Algo covers table and grid too, you do something similar

fantasai: how does this interact with the flex components?

iank_: complex because min/max sizes Algo for those is complex

astearns: have you gone thru those details?

iank_: a little bit, but haven't implemented it yet

iank_: so unsure of precise details on some bits

iank_: the only case we look at flex-shrink and -grow in blink (other impls differ a bit) is determining if an item can't flex at all

iank_: I don't think we want to use this as an opportunity to drastically change the web-compatible algo, seems it'll confuse people

iank_: if we use this as an opt-in to do something more clever it'll drastically change layout

fantasai: I dunno if that's actually a bad thing. they're already getting a lot of layout tchanges by this opt-in...

fantasai: giving them a result that matches what they're actually requesting would be great

TabAtkins: sounds like you have specific problems in mind you're hinting at?

fantasai: if I have a flex container, the children are flex-basis:0 and flex-grow is 2 and 1, I expect a different layout than if they're both flex:auto

fantasai: it'd expect a 2:1 ratio, and they can shrink

fantasai: that's what i've asked for

fantasai: so distributing evenly - is that really what we want to do, or distribute it in proportion to flex-grow

fantasai: and is min-content where we start, or flex-basis?

iank_: the current Algo today in browsers is start with min-content

iank_: I'd prefer to not change that drastically

sgill: I think I had basically the same q

iank_: distributing by flex-grow seems fine

sgill: from my understanding, the webcompat intrinsic size Algo is what impls do today

sgill: I think everyone does not look at grow and shrink

sgill: and whether or not we do something here because the author is opting in...

fantasai: the idea of shrinkwrap if you're wrapping the content tightly. no extra space, no overflow.

fantasai: it would be disappointing if we didn't take this opportunity to provide that in reality, rather than today where things sometimes overflow and are sometimes too loose

kizu: a q, I think distributing space based on flex-grow makes the most sense

kizu: and if there's no flex-grow, can align with how impls currently work

astearns: from my "following 15% of this" perspective, seems we have rough agreement on the idea but need more details work. any other thoughts?

fantasai: very excited to have this being worked on. request for decades

<flackr> +1

kizu: yeah original issue is 144

fantasai: and that's just from when we started on GitHub, it showed up in the mailing list before

astearns: so continue discussing in the issue?

iank_: Tab and I will chat about syntax, and come back with more proposals later

iank_: and we can go from there

github-bot, take up w3c/csswg-drafts#12182

Should `min-content` really include the width/height of `flex-basis: 0%` scrollable items?

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#12182

fantasai: we wanted to work on this at the f2f because we had people around, not actually needed for the whole room

astearns: okay we'll discuss later

github-bot, take up w3c/csswg-drafts#13149

[css-sizing] Intrinsic sizes for stretchable replaced elements

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#13149

oriol: I think last status was that we'd come up with a proposal

oriol: then we had a proposal but fantasai said it should be changed to make calc-size() correctly interpolate between 0 and auto, which I kinda agree

fantasai: we hadn't put it in front of the wg

fantasai: but if you think kit's right, we're probably fine

fantasai: I suggest we talk the group through it

<astearns> summary comment: w3c/csswg-drafts#13149 (comment)

oriol: to summarize a bit, when you have a replaced element with an aspect-ratio and no width/height, it stretches by default

oriol: then need to define how this translates into min-content/max-content/etc

oriol: so idea was, min-content is zero, max-content is stretch-fit size, but if we can't get a stretch size, we do 0 or 300px depending on whether it's compressible

oriol: for heights, we transfer inline sizes thru the aspect ratio

oriol: for calc-size()...

fantasai: we swap 3 and 4

oriol: typically we only resolve the keywords on [...]

oriol: but now in addition we transfer the sizing constraints from the other axis

fantasai: then that gives us a size - what it would be with that keyword - then we apply calc-size() to modify it

fantasai: and finally at the end we clamp by the same-axis min and max-size

fantasai: so the four of us think these steps are the right way to handle this case

fantasai: so we propose to adopt these steps. we'll figure out spec text in a bit

astearns: so y'all are still in agreement?

iank_: I think so....

iank_: the min-content does change once you resolve the block size

dbaron: what is the stretch-fit size?

iank_: if you've got a definite available, it stretches

fantasai: the margin box fit in to the available space

dbaron: so max-content depends on container here?

iank_: if it's definite

dbaron: [skeptical face]

dbaron: the original intent of min/max content is they're completely intrinsic, but we probably already broke that

TabAtkins: I think for wrapping column flexboxes yeah

iank_: this is the only case where we're using an *inline* size

iank_: so fi you have fit-content on an a-r SVG, it'll stretch to fill a definite container, and this is answering how that works

iank_: right now blink runs thru the replaced steps and at the end fails and just makes it stretch

iank_: this moves it earlier in the algorithm

dbaron: if the various implementors think it's ok I won't object. it's not my favorite thing to do, but it may well solve the problem we have

iank_: the only other way to fix this is do unexplainable fixup at the end when we can't figure eout min/max size

TabAtkins: The big deal is that we wanted calc-size() to work on the actual result had you given the basis
… that requires us to resolve the basis during layout, not at the end

iank_: so if you can work out the replaced element's height, that's still the min/max content size

emilio: I was looking at some of the non-calc-size() cases like fit-content

emilio: are those also changing here?

emilio: they seem all over the place

emilio: gecko has changed in some spots

astearns: okay resolving on this?

emilio: I trust oriol and ian

iank_: until we write test cases there will be slightly different interpretations of what we agreed on, anyway

PROPOSED: Adopt proposal in w3c/csswg-drafts#13149 (comment) including the swap of 3 & 4

RESOLUTION: Adopt proposal in w3c/csswg-drafts#13149 (comment) including the swap of 3 & 4

github-bot, end topic

<br dur=39min>

Grid, Gaps, and Lanes

[css-gaps-1] Grid-axis rules do not resume below spanning items in grid lanes

kbabbitt: Javier pointed out that what looks like a simple spec bug ended up being a can of worms

kbabbitt: Spec bug is that nothing in our algo specifies how we place separations with spanners
… here's an example, below 5 & 4 in 1st picture on https://github.com/w3c/csswg-drafts/issues/14648#issue-5965306336
… but we think there should be
… the author defined decorations along the tracks
… question is, where do they go?
… item 5 is in an alignment space. It could be center-aligned or bottom-aligned
… and item 4 has no alignment space
… want some kind of consistent answer

kbabbitt: Skipping down to this grotesque example here: w3c/csswg-drafts#14648 (comment)
… There's 2 notable things here
… Main one is, we're drawing decorations below spanners (problem we want to solve)
… You'll notice we're extending lines into alignment space
… it looks like protruding into 10's space, and 14's space
… A bit of asymmetry about drawing decorations above and not below
… But someone might look at this and say we don't want drawing in alignment spaces
… and we should draw up to and not into alignment space
… But problem with this is..

kbabbitt: Suppose w start with an empty grid. Draws grid lines across everything top to bottom
… Add an item, no problem
… I add a spanner, and now the decorations below it disappear
… I add an item that doesn't span, and the line re-appears
… This is weird and inconsistent
… So I believe better to draw into the alignment space
… Proposal therefore is to draw decorations up to item up to gap distance from either side

astearns: So end result you're looking for is this diagram (top one in kbabbit's comment)?

kbabbitt: yes

kizu: Would there be a way to achieve the before somehow?
… for them not to continue

kbabbitt: No, there wouldn't be
… that I can think of

javierct: Correct
… I understood question about not extending into alignment space but draw below, but i don't think so

kizu: If use cases for such, we could extend then.

miriam: What was weird about the other option? Didn't look weird to me

kbabbitt: Weirdness was the disappearing re-appearing vertical decorations
… [shows demo again]

miriam: It doesn't bother me that much
… also rare that I have a container that I have a container extending, that I want to extend it
… so I don't see the use cas where I don't like this

kizu: I think both could be useful.
… extending all to bottom, [missed]
… columns go all the way down
… maybe we need some way to choose

kbabbitt: Could add an option, if we think use cases for both.

fantasai: I think the disappearing lines is pretty weird

fantasai: and the best beahvior we can come up with is to do what you're suggesting, extending into alignment space

fantasai: in some ways it would be nice to create borders around the alignment space... but you can't, you're missing the bottom segment lines

fantasai: I think if you remove all the horizontal lines, drawing up to the spanners on each side gives you a pretty sensible layout

fantasai: once you put horizontal, that's where it starts to look weird

fantasai: but when spanners are around, they look weird no matter what

fantasai: gaps, they draw on top but not bottom, etc

fantasai: but if you take those away and just show verticals, I think this gives the best, most consistent results

<TabAtkins> +1 fwiw

JohnJansen: ON the previous screen
… I agree that the righthand side doesn't look weird, but the lefthand side looks really weird

JohnJansen: on the previous side, the right hand side doesn't look weird but the left does

JohnJansen: I imagine a calendar, a 2-day vacation spans, and the line disappears

JohnJansen: It makes my brain hurt

JohnJansen: I imagine the primary use-case would have items on the left again, so the line would reappear, but as laid out here it makes me very uneasy

astearns: these demos are great in their comprehensive display of the results, but I have a hard time linking them to use-case

astearns: I'd like to see a calendar maybe, or some actual layout. none of this looks good to me.

astearns: with chair hat on, terrible designer hat off, we should probably choose the thing we think is best, and leave off having a switch until people tell us they need it

<TabAtkins> +1

<fantasai> +1

fantasai: use-case wise, imagine a Pinterest layout where some items are spanning two columns and you only have vertical lines

fantasai: if one of the columns happens to end with a spanner, your line disappear

fantasai: even if you have a gap you want lines going up to the spanner, not inconsistent spacing between items and their lines

kbabbitt: here's a reconstruction with the horizontal turned off

kbabbitt: but it doesn't have the fixed code to extend into the alignment space

davidjmarland: Agree we should hold off on a switch
… and disappearing lines would be more likely to annoy developers. Where did my line go?

sgill: Use cases would be great
… but also thinking about this case and other case, where we have a grid-like container of defined columns
… as I'm scanning down, the lines help me separate what's happening
… if the lines disappear it feels like stuff combine, gets undefined
… so my preference is to draw them through

kurt: Think about this in terms of how we think about gap decorations and gaps
… I think these do feel like gaps here, so my take is a decoration seems reasonable here
… fact the decoration goes away seems unintuitive to me

TabAtkins: Looking at this specific example, strongly agree with fantasai that once you remove horizontals and just show the verticals
… mental model of having the vertiac lines just break underneath the spans when the have to, works well
… This (extended gaps) looks wrong
… If they did extend properly to abut the spanners, they wouldn't have that weird grouping thing
… There would just be 8 lines, and a visual skip when they run into a box
… Definitely seems like the right move

miriam: I think I'm convinced
… as Kurt says, it's what you'd expect

like, 5/6/7 look like they're grouped right there, but that's not actually some logical grouping

miriam: You could get back to this behavior by putting a wrapper element

kbabbitt: Yes, by putting something taking up entire alignment space

PROPOSED: Gap decorations all the way to a spanning an element, even into alignment space post-alignment of the item

PROPOSED: Gap decorations all the way to a spanning an element (minus gap distance in crossing direction), even into alignment space post-alignment of the item

<davidjmarland> +1

RESOLUTION: Gap decorations all the way to a spanning an element (minus gap distance in crossing direction), even into alignment space post-alignment of the item

[css-gaps-1] Define rule-visibility-items behavior for grid lanes

<astearns> w3c/csswg-drafts#14489 (comment)

javierct: w3c/csswg-drafts#14489 (comment)
… rule-visiblity determines whether to draw decoration based on whether there's an item next to it
… Here we want 'rule-visibility: between' -- only want to draw two things that are not empty
… above the spanner, we are drawing a decoration because it's between items in all three cases
… quesiton is what happens when you have alignment space
… you'll see that we have item 3 in 1st column which has space below it
… question is, if we have rule-visiblity between, you have two segments there
… for the bottom one, you have an empty space due to the left items' alignment
… and non-empty space on the right
… what I'm proposing is that we essentially count alignment spae as occupied
… in this case, even for the bottom segment, even though on its left side there's nothing there
… we consider it occupied and the item 3 in the right side draws on both sides
… Alternatively would be weird because if you move 3 to align to the bototm
… then the middle item would be not drawn

fantasai: I think that, if alignment space was just in the middle of the grid i'd be okay with that

fantasai: but since alignment space includes bottom to the end, then...

fantasai: look at first column

fantasai: the bottom item doens't have something next to it

fantasai: and the author has asked to not have something next to items that don't have stuff on both sides

fantasai: for auto palcement the stacks will usually be similar size, but with explicit you can have a stack significaly larger

fantasai: then it's less clear your between is working as intended

javierct: so let's imagine Pinterest layout, one column has one item the other has 10.

javierct: then all 10 items would have lines even though they're well below

javierct: if we expect that to be the more common case, that might make sense

<astearns> +1 to fantasai (I think)

javierct: you have to use rule-break:intersection anyway for this to occur

fantasai: a little further, let's take into consideration the two items in the bottom area that are currently next to each ohter

fantasai: if they were much taller... the fact that the rule is drawn all the way to the bottom of 2 isn't what you'd expect.

fantasai: I think you'd want it to draw only to the area it *is* between the two things, so draw to the shorter item

javierct: so it should extend to the bottom of 3, not the bottom of 2?

astearns: and at the top, to the bottom of the shorter 1?

fantasai: yeah I guess. I could be convinced the other way maybe

fantasai: but if I have staggered items and I asked only for lines "between" the items, the line would stop when it's no longer between items

javierct: hm. a little tricky, we don't have a mechanism right now

javierct: below the short 1 there is no gutter below the item until you get to the spanner

javierct: but we already said we don't get new gutters

astearns: and I think the previous issue was drawing only to existing gutters

fantasai: no, in previous issue you expect to draw *thru* the gutter up to the item, leaving a "virtual" gutter of space to maintain the separation

fantasai: so here's the opposite

javierct: want to draw to what's the visual end of the gutter

javierct: i'm trying to parse how we'd define that...

javierct: it's hard for me to say how that would work with the concepts we already have

javierct: I can see how we'd expect that, looking at this image... but

javierct: trying to think about how this would work

javierct: so I think there are two issues now.

javierct: one is don't consider alignment space empty

javierct: so I can see why to not consider empty alignment space as occupied

javierct: but there's the offshoot issue where a smaller item... what happens between

TabAtkins: I have two divergent opinions
… If we keep current behavior of drawing to the longer element, I think we should take 3rd option and draw it the whole way
… Already weird that it draws in space between two items
… Having it choose some of that space based on arbitrary size of other items seems bizarre
… If we do that, fill in the whole space there. The whole region is occupied theoreticall
… Don't want a different effect for one tall item vs multiple small ones

TabAtkins: But if instead we draw only to hypothetical gutter post-alignment
… then we should only take up to the space between two items exactly
… and I prefer that in general
… Not so strong on which of these two to do, but strongly want us to be consistent

javierct: So essentially, we take Elika's first proposal, then we expect two separate segments below these ones...
… let's pretend you have a rule-visibility: around
… you have 2 separate segments now
… is there a gap between them, or are they completely butting up against each other?
… This doesn't really happen in other containers.

[???]

javierct: Above the spanner
… we draw only alog the shorter item
… [stuff]

TabAtkins: If you're doing "between" which means you draw only when item on both sides, that segment gets shortened to the shorter item
… similar to previous item, we resolved to extend into alignment space

javierct: I could see that
… maybe we change definition of rule-visiblity, right now it applies to segments
… I agree with what you're saying, that this is what we expect
… So rule-visiblity wouldn't apply post segment construction, but during segment construction

TabAtkins: Affects the eventual size of the segment

kbabbitt: Suppose we don't have a spanner, we just have single column items maybe eve placed explicitly or not
… It starts to look a bit like a flexbox
… Just have items of various sizes in their rows/columns
… For flexbox we decided that in the major direction, ????
… I think we should be consistent with that
… and keep them going from one end of the ocntainer to the other
… which would be the rightmost diagram here

TabAtkins: Is that decision about rule-visiblity?

kbabbitt: I think we don't apply it at all

TabAtkins: For the between flex row rule, around vs between , it draws or it doesn't entirely right?

kbabbitt: right

astearns: I'm a little uncomfortable saying decorate more vs decorate les...
… but I think if there were more lanes in these examples, with multiple gap decorations on each row
… our intuition might be different
… might want consistency rather but unsure

kurt: This is grid lanes, previous was 2D grid
… if this were a 2D grid, would it render based on aligment space?

javierct: if this was a grid, and you had between, it would look more like lefthand side
… because you would have a cell in the first column bottom
… because it's cells rather than lengths

kurt: So issue is the grid-lanes-ness

[some additoi clarifications]

fantasai: trying to remember what rule-break does...

fantasai: is there a way to get the behavior where you draw a line only between items where there is an actual box on either side, and we skip spanner so we dont' draw underneath them

javierct: rule-break:intersection stops at these gaps, like between boxes 2/3

javierct: what you're describing sounds like default rule-visibility and rule-break

javierct: if you wanted the rule breaking at gaps you'd use rule-break:intersection

fantasai: all or around draw regardless of whether there's an item on both sides

TabAtkins: just to be clear - talking about the exact case we're currently discussing, where the line is the shorter of the two 1 boxes

fantasai: what i'm thinking is, I don't know that *anyone* actually wants any of the three behaviors shown on screen right now

fantasai: they want either a rule when there's a box on either side, or only a rule when there's a box *exactly* on both sides

kurt: Is this only in grid lanes? is there something similar in flex?

kurt: is this only in grid lanes?

kbabbitt: yes, because of spanners. doesn't occur in flex

kurt: Maybe we should have a separate issue for that?
… what is a gap in grid lanes

javierct: Trying to clarify, the two scenarios that the author might want
… If we had the defualt behavior that we currently have
… essentially the line between 1 and 1 and 1 and 2, and you stop at hte spanner, and then you continue all the way to the bottom
… If you want break behavior where you stop at gaps, then you have 'rule-break: intersection'
… and then you get a decoration next to 2, then break, then next to 3
… Those are the behaviors we have now
… with rule-break: normal and intersection
… I'm not following ... are those the two options you described?
… You said not sure author would want any of these, I think I might agree

fantasai: idk >_<

kbabbitt: Thinking about what Elika has described here, is there room for us to revisit how we segment decorations in grid lanes
… other cases where we do this, always the case that there's a gutter in the crossing direciton
… Here #1 item in top left kinda just ends, and we don't have a gutter until the spanner
… I'm wondering if we have a segment endpoint from top of 1 to bottom of 1, and bototm of 1 to bottom of other 1
… same would apply below the spanner

javierct: I think that just means we have to change how we think about decorations in grid lanes vs other containers
… it's more based on the items rather than the crossing gutters
… for grids, based on gutters
… but grid lanes maybe baed on adjacent items rather than gutters
… maybe fair, but departure from what we've done

<Zakim> TabAtkins, you wanted to suggest a specific behavior Algo here

TabAtkins: Based on previous resolution, which was extending some of these rules past a crossing gutter and draw up to a hypothetical gutter adjacent to span
… similarly here, when you're in grid-lanes, and you have rule-visibility: between which demands an item on both sides
… you would shorten segments that did have an item on either side
… to where it has an item on either side

kbabbitt: Issue is that conceptually we divide into segments before considering visibility

TabAtkins: yeah that's fine. in the example on screen, the bottom area, you divide that bit into two segments due to "intersection", as normal. You'd drop one of the segments because there's only an item on one side, depending on item alignment, then you'd *shorten* the other line so it's exactly fit into the actual "between" space. This is analogous to the previous issue where we *lengthened* some rule to extend them *into* an align space

javierct: that could work
… after segments are determined, but limit where we're drawing

kurt: I'm worried about indexing too much on last one, it's a 2d grid, so if you look at space between grid items
… whereas in grid lanes, gaps are more obvious in one axis
… question - if this was a multicol with two items of different heights
… what is the behavior of the items?

javierct: In multicol, the colunmns are the same height
… content might end early
… but it would look like it does now
… multicol we don't look at content inside the colun

kurt: So no alignment?

javierct: NO
… decoration just separate equal-height colunmns. In a column row, always the same height

kurt: ok

yeah, multicol and grid both strictly lean on the grid defined by the structure (the ::column and the grid areas)

grid lanes is just looser

javierct: I would be willing to resolve on what Tab suggested

PROPOSED: in grid lanes, when doing "between", we drop and/or shorten lines *post alignment* to only appear strictly between two items

javierct: essentially we don't have to change how rule-visiblity applies in general, just caveat that in grid-lanes we determine the visibility of a segment based on where the shortest side is

<kbabbitt> sounds reasonable to me

astearns: If we do this for grid lanes, ppl will want it for 2D grid maybe?

javierct: will need to consider that
… in a grid you could have adjacent cells where one has an item that's half the size of the other

astearns: In 2D grid it would be the rendered content height

javierct: Which makes me feel weird about what we're proposing. But maybe not a concern

astearns: still worried we didn't consider more complex grid, but consider in the future

(yeah, Grid and/or Multicol *might* want something that cares about the actual content boxes rather than the container's grid, but that's something we can do later)

fantasai: should we take a similar resolution for flexbox?

astearns: open a separate issue for flexbox

astearns: objections?

RESOLUTION: in grid lanes, when doing "between", we drop and/or shorten lines *post alignment* to only appear strictly between two items

astearns: resolved to decorate less

TabAtkins: decorate consistently!

fantasai: In both cases, aligning the rules to draw based on where the items actually are rather than a conceptual hypothetical model

[css-grid-3][css-display-4] Naming for grid lanes reading-flow values

yanling: Our proposal here is to add two new values, grid-lanes-axis and grid-lanes-cross-axis
… we think this will cover the behaviors unique to grid lanes
… also alternative is grid-lanes-flow and grid-lanes-track
… also proposal for grid-lanes-order
… But since proposal is same for grid and grid-lanes, could use same keywords for order values

TabAtkins: Recent comments from Rachel suggesting, 'grid-lanes-flow' and 'grid-lanes-track'

TabAtkins: Looking over all the options, I like those the best
… Concept of track appears consistently
… and flow matches other flow keywords
… So I suggest we go with those

fantasai: I hadn't caught up - is "track" just down the tracks?

fantasai: [asks to clarify what they mean]

TabAtkins: tracks goes down the tracks, flow follows placement in a way we're still figuring out

astearns: Is that enough of an explanation?

fantasai: For now, sure?

<davidjmarland> +1 on `grid-lanes-flow` and `grid-lanes-track`

yanling: The suggestion looks good to me

<kbabbitt> grid-lanes-flow and -track works for me

yanling: also question about order

PROPOSED: Names are grid-lanes-flow and grid-lanes-track

(yeah, given we have a strict -order for the other ones, should probably do it for grid-lanes too)

RESOLUTION: Names are grid-lanes-flow and grid-lanes-track

TabAtkins: 'grid-lanes-order' strictly following 'order' otherwise DOM order
… same as grid order and DOM order

<rachelandrew> +1 to add it

fantasai: i'm not sure... I think grid-order might be fine, but I dont' feel too strongly

astearns: but your'e fine resolving for now?

fantasai: yeah, can open an issue later if needed

RESOLUTION: Add grid-lanes-order

<emilio> github-bot: take up w3c/csswg-drafts#14390

[css-grid-3] What are the use cases for subgridding grid-lanes with grid and vice versa?

<github-bot> OK, I'll post this discussion to w3c/csswg-drafts#14390

<emilio> fantasai: might benefit from jen's input

fantasai: If w'ere deciding based on use-cases, want to hear from Jen first

TabAtkins: can we tentatively resolve, pending Jen input?

fantasai: I'd be more comfortable deferring a bit

TabAtkins: Okay, let's have a 2-weeks deadline, next call

JohnJansen: getting clarify about what's decided

JohnJansen: async resolution for 2 weeks if there's no Jen feedback? or just take it up in two weeks?

fantasai: let's schedule it on the next call

astearns: we'll put it on the call in two weeks if Jen has use-cases

astearns: okay, we'll get to this soon

<JohnJansen> who has the action to ask Jen to add use-cases async before a call happens?

<astearns> Elika

[css-grid] A way for columns to shrink below their minimum width when they overflow?

TabAtkins: This is a problem we want to solve, looking for ideas

TabAtkins: [projects]

TabAtkins: Use cases is a bunch of tabs laid out in a row
… If he starts with columns of 1fr, they all get equal space, even though one of them has so much content that it overflows
… You can get around that by changing to minmax(min-content, 1fr)
… Now the long item gets what it needs, and the remaining space is evenly distributed
… problem is that if the container gets even smaller, so no leftover space
… the long tab is no longer allowed to overflow

ACTION: @fantasai ask Jen to add use-cases to 14390 prior to putting it on the agenda for a call

TabAtkins: because all of these items start at min-content
… the tab list overflows!
… There's no middle ground here
… Either one item overflows even though there's extra space
… or they all overflow when there is not enough space and we can't ellipsize
… We want to make this case work somehow

astearns: If we have controls for each item's sizing, but not a control for overall layout?

TabAtkins: Yeah, grid itself will grow as large as it needs
… if we had a way to prioritize the size of the grid
… or borrow concepts from flex somehow?

dbaron: One thought is that, the table layout algorithm does this:
… it has a sequence of possible solutions, not just two
… You have layout a), b), c), d), e)
… where each one, everything in b) is bigger or same as a, in c) bigger or same as b) etc.
… and it figures out what to do given the current width
… if you're between widths of b & c, you take a weighted average of the two
… underlying is that you have multiple phases of expansion or compression, and different things in each ones
… what I don't now is how useful it is to give authors that control, for arbitrary levels of transition
… and also don't know if it fixes this case.

TabAtkins: Thinking about table layout might work, this is grid
… another possiblity alluded to is that we lean more into Flexbox
… right now when you're sizing a cell, you have a starting size and a max. If we had starting size, min, and max

<astearns> those classes of bigger/smaller things could shuffle as size is reduced from the largest items

TabAtkins: so you start at a size, but we also allow shrinking
… that might solve it
… use a new fuction

fantasai: flex()

TabAtkins: that might work

dbaron: I tihnk what you said is similar, but you have 3 stages instead of arbitrary number

<oriol> w3c/csswg-drafts#1102 (comment)

oriol: Reminds me of some earlier discussion [linked]
… basically you provide a minimum and maximum
… but also need a preferred size as well
… I'm not sure if it's exactly the same here, but maybe we could fit into that
… and say that we want preferred size of max-content, that would still stretch to flexible maximum
… however the flexible maximum would try to enforce equal sizes
… and the maximum would be able to do so as long as not violating minimum, which could be zero
… maybe need to twist it to fit into this configuration, but we could reduce the solution to this

I do think Oriol's linked suggestion is exactly what I just suggested, yeah

davidjmarland: The request is syaing that the min-content is a soft limit, not a hard limit, and I want the grid itself ot win over that request
… something like flex-basis
… would be more elegant

TabAtkins: Useful conversation, we'll need to noodle on this

astearns: any other ideas?

flackr: additional constraint to take into account, if there's not enough space, you probably want to just shrink the really long column

<astearns> big +1 to flackr

flackr: not shrink all the columns and cause all the text to elid

<florian> +1

<kizu> +1

flackr: so idk if we have an algo for this, but some kind of ratios of sizes or something like that

TabAtkins: Agree.
… Need to shrink them back to equality before shrinking everyone probably matches what authors would expect better

astearns: Whether shrinking to equality or not growing beyond the amount that would take up the entire space, not sure what would be easier to express

TabAtkins: good points to think about

astearns: Expanding on Rob's point, in the simple case we can make the biggest thing smaller
… but in more complicated case, might be two items that are the same big size, and we shrink them equally
… even more complicated, there's a system where we want it to be as small as other items

flackr: And maybe a preferred ratio between them

fantasai: this is the exact opposite of frs

fantasai: we start at minimum, distribute only to the small items until things are equal, then we grow more, etc

fantasai: so minimum necessary to hit the ratio, then expand from there

fantasai: I think we can do the exact opposite

fantasai: so what we need is a shrinkable fr

TabAtkins: I feel like that's definitely where we should start, yes

<florian> makes sense

SUMMARY: Some cool ideas, read the minutes, need to do more noodling.

End

astearns: Thanks to everyone who attended in person and remotely, and thanks to scries

<JohnJansen> Great being back in the same room with you people

astearns: We'll skip next week's call to give everyone a break

<dbaron> (when will appearance:base breakouts restart?)

<JohnJansen> the following week (Nov 11)

fantasai: Let us know if you have considerations for F2F travel. Redmond/Vancouver in Feb and Panama in December, trying to figure out the middle two. Top candidates are Silicon Valley, Toronto, Paris, London.
… Talk to the chairs and/or me/Tab

Summary of action items

  1. @fantasai ask Jen to add use-cases to 14390 prior to putting it on the agenda for a call

Summary of resolutions

  1. Highlights should support opacity, which changes the opacity of the highlight background and the text and the text decoration, details TBD
  2. Animations and transitions should be allowed on highlights
  3. Allow @property to be nested in @private and in @function bodies, where it provides a definition for the private var.
  4. Define the @property --name <type>: initial-value; shorthand form of the @property rule. Separately , look into specifying inheritance in this syntax.
  5. Adopt trailing comma rules as written w3c/csswg-drafts#14370 (comment), minus whitespace trimming
  6. Mixins use loose name matching
  7. Add `gamut-mapping` feature, and a note summarizing concerns
  8. revert virtual lines (maintain float-slicing behavior)
  9. Work on solving this as either a new keyword or a modification of fit-content and automatic sizes. Does not affect min-content or max-content.
  10. Adopt proposal in w3c/csswg-drafts#13149 (comment) including the swap of 3 & 4
  11. Gap decorations all the way to a spanning an element (minus gap distance in crossing direction), even into alignment space post-alignment of the item
  12. in grid lanes, when doing "between", we drop and/or shorten lines *post alignment* to only appear strictly between two items
  13. Names are grid-lanes-flow and grid-lanes-track
  14. Add grid-lanes-order
Minutes manually created (not a transcript), formatted by scribe.perl version 250 (Wed Oct 21 13:34:09 2026 UTC).

Diagnostics

Succeeded: s/infill/Intl.segmenter configuration/

Succeeded: s/do my own/use that to do/

Succeeded: s/???/What getRangeStyle returns when cross element range that having different inherit style property from subtree parent?/

Succeeded: s/highlight/highlight background/

Succeeded: s/gibve tyou/gives you/

Succeeded: s/the proposed syntax/the argument syntax/

Succeeded: s/and answer tricky questions/and answer tricky questions, and limited ourselves to "does this parse"/

Succeeded: s/explicitly would be a useful feature anyway/explicitly would also let you gamut map *before* interpolation/

Succeeded: s/+1 to proposed resolution/+1 to astearns proposed resolution/

Succeeded: s/tbsp/tbsp/

Succeeded: s/tbsp/tbd/

Succeeded: s/can't be for parsing/can't be detected via parsing/

Succeeded: s/florian/emilio/

Succeeded: s/+1//

Succeeded: s/fit-content/fit-content and automatic sizes/

Succeeded: s/consider/continue/

Succeeded: s/[missed]/yeah that's fine. in the example on screen, the bottom area, you divide that bit into two segments due to "intersection", as normal. You'd drop one of the segments because there's only an item on one side, depending on item alignment, then you'd *shorten* the other line so it's exactly fit into the actual "between" space. This is analogous to the previous issue where we *lengthened* some rule to extend them *into* an align space

Succeeded: s/???/track/

Succeeded: s/[missed]/grid-lanes-order/

Maybe present: andreubotella, astearns, dandclark, emilio, fantasai, florian, GameMaker, github-bot, IanK, iank_, javierct, kbabbit, sgill, SUMMARY, vmpstr, yanling, …Question

All speakers: andreubotella, astearns, dandclark, davidjmarland, dbaron, dholbert, emilio, fantasai, flackr, florian, GameMaker, github-bot, IanK, iank_, javierct, JohnJansen, kbabbit, kbabbitt, kizu, kurt, lea, miriam, oriol, romain, seokho, sgill, SimonSapin, smfr, SUMMARY, TabAtkins, vmpstr, yanling, …Question

Active on IRC: astearns, cbiesinger, dandclark, davidjmarland, dbaron, dholbert, dshin-moz, emeyer, emilio, fantasai, flackr, florian, front-endian-jane, GameMaker, hoch, iank_, JohnJansen, kbabbitt, kiet, kizu, kurt, lea, miriam, oriol, rachelandrew, romain, seokho, sgill, SimonSapin, smfr, TabAtkins, vmpstr, ydaniv