W3C

- DRAFT -

Cascading Style Sheets (CSS) Working Group Teleconference

13 Feb 2019

Attendees

Present
astearns, dauwhe, dael, melanierichards, bdc, oriol, antenna, antonp, florian, dbaron, tgraham, rachelandrew, jensimmons, plinss[m], leaverou, chris, dino, emilio, svoisen, Rossen, TabAtkins, AmeliaBR, bkardell_, bradk, tantek
Regrets
Chair
SV_MEETING_CHAIR
Scribe
dael

Contents


<scribe> ScribeNick: dael

astearns: We'll give people a few more minutes
... I think we should get started
... First thing, are there any changes to the agenda anyone would like to make?
... Housekeeping- we have a F2F coming up. If you haven't put your name on the wiki as attending or regrets please do. And look at the agenda.

minmax(auto,min-content) under a max-content constraint

github: https://github.com/w3c/csswg-drafts/issues/3565#issuecomment-461242081

astearns: Discussed last week. Sounds like the one thing waiting on is the verbiage for what to do when spans >1
... Is fantasai on yet?
... Is there anyone else who wanted to go over last week's discussion or have anything new?
... Rossen it sounds like on this item we were waiting to resolve on fantasai addressing a comment from Mats. She did in the issue. Should we call for resolution?

<jensimmons> oh sorry — I was totally confused. I thought you were asking for new agenda items for the call still… SORRY. That’s what I get for doing more than thing at the same time

oriol: fantasai proposed edits and they're not yet in the spec. I had some complaints against them and they need to be tweaked a bit. It would be better to discuss with fantasai

fantasai: I'm here

astearns: oriol did you want to discuss on the call or do it in the issue?

oriol: I wrote them in the issue. mostly it was that fantasai proposed to clamp as an upper limit that's the maximum of value. I thought it would make more sense to sum values rather than max of them. Some other minor corrections that maybe can be in github before making edits

fantasai: It's a max instead of sum because we want it to just fit within the number of tracks it spans. If it spans 50px and then one that's min-content we want it to fit in 50px plus whatever is left. If we add to it the 50px we're giving it more space then it needs

<Rossen> just a sed

astearns: It sounds to me that there are 2 issues. THe one on the agenda and another that has some ramifications on this one?

<Rossen> sec... having problem connecting on the phone

florian: I think ramifications are a follow up to the thing on the agenda

oriol: The item in the agenda was for the non-spanning case and Mats wanted to handle spanning case as a generalization of this and it make it more complicated

astearns: Okay, thank you
... I could see two ways going forward. One is figure out the ins and outs of spanning case on the call. Sounds like discussion is between fantasai and oriol so might not be most efficient. Other is resolve on accepting these edits and if needed open a second issue for spanning case

fantasai: Can resolve on principle of handling min content track sizes as a clamp on automatic sizes in a similar way fixed sizes are a clamp

astearns: Make sense oriol ?

oriol: Yes

astearns: We're asking for 2 resolutions? One to accept the edits proposed in the issue and second is on principle?

fantasai: Just principle. Deal with the edits in the issue that is open on that

astearns: Issue on agenda needs resolution. Is resolving on the principle sufficient?

fantasai: I think so

astearns: Prop: Close the issue by resolving we will handlemin content track sizes as a clamp on automatic sizes
... Objections?

Rossen: This is on #3565?

falken: Yes

s/ falken /fantasai

Rossen: sgtm

RESOLUTION: we will handle min-content track sizes as a clamp on automatic sizes

jensimmons item

jensimmons: I've started working on CSS remedy project. It's a replacement for the normalized style sheet and css reset. devs use them to help them when getting started with a project.

<jensimmons> https://github.com/mozdevs/cssremedy/issues

jensimmons: One of the things I found facinating when joining group is we can't make the default the best value because we can't break compat. THe propose of css remedy is to collect those bits to give best practices rather then old compat.
... Some of you have been involved and I'd love more interest. Mostly we're discussing on issue. It could have a lot of traction. Already 1000 people visited on github. We'll hopefully have it out in April or May.

astearns: Anyone want to add anything? Or we can keep this informative

florian: People should participate. I do and if you don't want me to be wrong you should come correct me

outline on ::selection

github: https://github.com/w3c/csswg-drafts/issues/3604

<jensimmons> Thanks for letting me announce that! Thanks astearns !

fantasai: currently outline applies. I tried to add a definition but it's not that simple and I don't think anyone impl. Does anyone want this? If not we can drop it. It's about selection as well as spell check.

dbaron: I wouldn't know how to define it so happy to remove

florian: use cases I care about don't call or it so I'm okay

astearns: Anyone want to keep it?

<fremy> +1 drop it

astearns: Prop: Remove outline from list of supported styles on ::selection
... Obj?

RESOLUTION: Remove outline from list of supported styles on ::selection

Should Element.pseudo("unknown") be an error or return null?

github: https://github.com/w3c/csswg-drafts/issues/3603

fantasai: Somewhat related to #3607about identity of the pseudo

leaverou: Does it present null in any other case? If it's not defined at all does it return null?

fantasai: That's an open question

leaverou: In general errors meandev have to handle. But we needto be able to distinguish doesn't exist and not defined. Feature detection needs to be possible

<fantasai> Questions:

fantasai: Open questions are should element.pseudo always return same object even if you removet he style that generated it? Other is if it doesn't exist in box tree do we get an object back? When we request something that doesn't exist b/c not supported what do we return?

TabAtkins: Addressed first question last week. Keeping objected identity stable is useful. Question of what to we return when before doesn't have a property and can you fiddle with an object. Second question, we do need to distinguish between a pseudo that doesn't exist and one that isn't valid. I don't think it's useful to return null if a pseduo element doesn't exist on an element. Perhaps a bool to say if it exists or not
... The for the unknown thing where you put ::foo it should throw an error. Even thought CSS style sheets can be forgiving, JS APIs shoudl throw in clear error cases.

fremy: I think it makes sense to return an object all the time. On the error part I'm less sure b/c we'll have compat issues and errors can cause entire thing not to work. Less sure but understand arguement

leaverou: It's impossible in JS to tell if it's that the element doesn't exist or something else went wrong. You can sort of guess but not be sure

TabAtkins: We can return different types of errors. We don't throw that many errors and you can tell from type. Message will usually let you know what's going on

leaverou: From console, but can't programatically detect

TabAtkins: But there'sone error it can cause

leaverou: What about the future

florian: With this if you start nesting and I don't know if that's same error as asking for a pseudo that doesn't exist

TabAtkins: Can't ask for a pseudo on a pseudo

fantasai: I think if we're deciding element returns null when it doesn't exist it makes sense, but if we're not we should return an error

astearns: Sounded like 3 parts to TabAtkins summary. 1) always return

TabAtkins: the same object for a give element/pseudo element pair

<TabAtkins> 1. Always return the same object for a given (element, pseudo-element) pair.

astearns: Always return same object. Return an object for when a element exists

<leaverou> Btw a historical case that may help: In old IE, setting element.style.foo would error if the value was invalid. This was very widely considered as annoying by developers, until eventually IE changed and stopped throwing.

emilio: That means you need ot keep object for lifetime of element. You could have to store a gazillion objects which you don't need. I would have to check

florian: Garbage collected?

emilio: I guess it's not observable. Any other that does the same?

<dbaron> (discussion about the element keeping a weak reference)

fremy: [missed] if you drop the reference it's garbage collected and you get the new one
... Not possible to notice because you don't have anywhere to compare to

TabAtkins: If you ask for a ready promise those are cached and you're not calling because ready state has not changed. That sort of retention of objects is not uncommon

emilio: font face it's one object and this could be many objects. If it's a problem we can face it

TabAtkins: If you're iterating the entire tree, that's weird

emilio: I've seen people do it

florian: Pseudo with a certain style, you look at all

fantasai: One thing we could do is return null if doesn't exist on element. If at any point it does exist browser has to maintain the reference. Function might return null or that object, but never another. SO if pseudo element at some point exists you keep that reference.

TabAtkins: psueod element does exist- if there isn't css setting the before would we return null when asking for the before pseudo

emilio: Also what happens when display on sub tree? I don't know

<fremy> +1 to what TabAtkins just said

TabAtkins: I'm unhappy with it because it means you can't use this API to toggle a pseudo element on. You have to go through normal css which is a more complicated redirection. Sounds good but messes up too much

plinss[m]: Isn't that a feature? SHould we be able to create pseudo not backed by css?

fantasai: Currently has a .style that allows you to set and have it exist.
... Interesting thing is to plinss[m] point you can't serialize that back out. WE have style that will serialize out for .style, but not for a pseudo element.

TabAtkins: If we accept nesting proposal style auto upgrades to be able to support that. Have to define, but you can embed a nested style in the style attribute. There's a route to make it serializable

<emilio> Rossen++

<dbaron> Another maybe-silly option is a null/undefined distinction, if you want to think of .pseudo() as sort of like a shorthand for a long list of DOM properties (where undefined means "not implemented" or "the browser doesn't know about it" and null means "known but not present")

Rossen: Question- Is anyone working with any DOM or HTML folks on this? Curious to their PoV. Sounds like a pretty overarching API that we should be working with at least DOM folks. I'd hate to see something like this worked on for so long and then go back to square one.
... Perhaps with an envoy it would be good to get their PoV

emilio: We can ask for feedback

<TabAtkins> dbaron, I don't see a good reason to return undefined vs throwing, tho.

fantasai: Would like to try and resolve and we can reopen if they give feedback and get a publication out to request a review

<AmeliaBR> If we accept Tab's "route to serialization" by allowing pseudo-element styles in the inline style of the main element, doesn't that also open up a "route to dynamically generating a pseudo-element" by declaring a `style="::before{content:"text"}` on the parent element's style object?

astearns: Would be nice, but not sure I'm hearing consensus
... I agree figuring this stuff out does make this issue about a non-existent pseudo...how we answer all these questions does make a difference on how we address this particular issue

<fantasai> AmeliaBR, only if you escape those quotes properly :)

<TabAtkins> `style="&::before{content:'text'}"`, but yes

Rossen: I'm hearing a lot more questions then suggested answers. Doesn't suggest you're ready to resolve. If we're looking to push an updated version of spec I don't thinkw e need to rush a decision

astearns: Issue on the agenda is just unknown pseudo elements. Are there other issues for psuedos that can hop on and off of existance?

<fantasai> https://github.com/w3c/csswg-drafts/issues/3607

fantasai: #3607

astearns: Gotcha

<fantasai> That transcript misses some of Tab's follow-up comments

astearns: Not happy to not resolve, but I don't think we have a plan. What about we come up with a proposal for both issues, discuss at F2F, come to a decision there. We use time up to F2F to reach out to DOM people and anyone else that would have real input on what to decide

Mark unimplemented CSSPseudoElement features at-risk

github: https://github.com/w3c/csswg-drafts/issues/3540

fantasai: Suggestion is mark things unimplemented or drop them if no one plans to implement. No one place to impl style method. Other question is which pseudo elements do we want to support. ::selection or jsut those that generate boxes? Moz only supports ::before and ::after

astearns: I don't have an opinion as to which we have to support. I noticed when reading spec there are lots of others in the spec not mentioned here. It would be nice to havea note as to why others are omitted

fantasai: I suggest we trim spec to subset moz supports unless anyone intends to implement?

<leaverou> if it only supports a subset of supported pseudo-elements, that's yet another reason to not throw when other pseudos are used that are supported by the browser but not by that API

astearns: Obj to trim set supports to ::before and ::after?

fantasai: And no style

astearns: Objections to either

RESOLUTION: Drop style from this level, restrict API to ::before and ::after, add a note to why the other things are not yet supported

fremy: Begs question to what we should do for other things browser supports. WE should say what to do with other stuff.

fantasai: Yeah

astearns: Can you add a comment to the other issue mentioning we should define that?

fremy: I can

Clarification on prefers-color-scheme issues

github: https://github.com/w3c/csswg-drafts/issues/3278

<Rossen> ah, misread the log...

emilio: Bascally, people are about to ship this MQ. There were unsolved issues. Should be straightforward
... One is what should MQ evaluate in boolean context.

florian: It's defined in spec. If there's disagreement to what's defined I'm happy to hear it

emilio: Peoplediscussing on issue, but if spec says that's fine

florian: Same as no preference

dino: It makes using that form almost useless. You can't derrive meaning from it. If the query is prefers color scheme it will eval to true if they picked on

fantasai: Not prefers color scheme is interesting though. Makes it shorter to type out.

dino: You save 5 characters

TabAtkins: Prefers color scheme and not is clearly you either do or don't. It makes it this thing exists or doesn't and that's what null communicates

<AmeliaBR> `@media not (prefers-color-scheme)` and `@media (prefers-color-scheme: no-preference)` make sense as equivalents, to me.

emilio: Other question is if it should match light on print or if that's too smart

dino: That is another issue

astearns: I hadn't read the entire thread on #3278. Is that only what to do in boolean context?

emilio: Yeah

<dbaron> do existing implementations follow that answer?

astearns: Sounds like we have an answer. @media prefers-color-scheme is the same as null
... It sounded like dino found it useless

<dbaron> (sorry, I can't unmute since the machine I'm dialed in on is semi-frozen thanks to yesterday's Windows update...)

dino: I don't know why you'd use it, but it does follow behavior so it's fine

TabAtkins: Yes, we're looking for consistency in how other MQs are handled

astearns: Prop: Close this issue no change, it is defined in spec. dbaron asked in IRC if impl match this

florian: I think we're light on tests

dino: We don' have any no-preference option

??: I think blink is one that would have to change

emilio: Blink matches

dino: We should contribute tests for this. not sure how you can test user choice

florian: That's always the problem with testing MQs.

TabAtkins: Generally they're all manual tests. They're very hard

dino: Internally we have JS API only exposed in test system to set user preference for that page. Would be nice if al browsers could standardize on an API to do things like this. Would cover media style but nice if pointer events and touch events and that type of thing. Not for this WG I guess

<fantasai> sgtm

astearns: Sounds like there's consensus to close this issue and take what's in the spec currently. Objections?

RESOLUTION: Close this issue no change, there is already language in the spec

prefers-color-scheme and printing

github: https://github.com/w3c/csswg-drafts/issues/3522

emilio: Somebody asked if prefers color scheme should always be light web printing. Seems reasonableand I think it's what webkit does. BUt author can already check that. Should we define this?

<AmeliaBR> It sounds like something that the browser should include in their Print UI, just like turning off background images.

<AmeliaBR> (AKA, what Florian is saying)

florian: Feels like something up to UA. Seems reasonable UA choice to switch to light when prining. I think a checkbox in the print pop up is also reasonable as well. Saying UA can have a different preference sounds good, but forcing light is overkill

fantasai: I think suggest UA returns light when prining

<tantek> yes that seems reasonable

TabAtkins: What's returned is 100% UA determined, but most of the time you want light when printing. Have a note that this may vary on various factors, but printing should default to light

dino: You might want dark if printing a PDF, but that's something the UA can expose. I'm happy to default to light

fantasai: Suggest if you expect to print to paper you should indicate a preference for white. Doesn't necessarily mean PDFs should default to light

astearns: Prop: Do not have any normative text about this. Add a note encouraging UAs to think about what should be done for printing and to use light when they know printing to paper
... Objections?

<Rossen> unless the paper is black... :)

RESOLUTION: Do not have any normative text about this. Add a note encouraging UAs to think about what should be done for printing and to use light when they know printing to paper

Empty grid tracks should contribute to scrollable overflow

github: https://github.com/w3c/csswg-drafts/issues/3638

astearns: Short intro to this topic

fantasai: Filed by someone using empty grid tracks. It was showing...it's in a scrollable grid container and spacing left by empty ttracks not showing in FF b/c different interpretations. Should scrollable overflow area of grid container be only big enought ot cotnaint elements or big enough for entire explicit grid. It's an abstraction that's not a box

TabAtkins: Grid exists like flex lines. It's not a thing in thebox tree

fantasai: Argument against is impl that's the only thing that's real. Authors expect inluding all grid tracks

Rossen: A grid element that itself is overflow scroll?

fantasai: A grid container that's overflow:scroll with a bunch of tracks and some items in it.

TabAtkins: Items in the grid fit within the visible area, but tracks don't. Scrollbar or no?

jensimmons: Super itneresting. If authors have extra tracks I think they would expect to scroll

rachelandrew: Authors would expect a scrollbar. They expect the grid to be real

plinss[m]: Would you expect it to size to explicit grid lines if it's not overflow:scroll?

fantasai: It does

plinss[m]: Bheavior should be consistent

Rossen: Are you saying the intrinsic size of the grid is the extent for scrolling?

plinss[m]: Yes

astearns: We're at time. That's an intro for this issue. It's an interesting one and we should discuss in the future.

end

astearns: Thanks everyone for calling in and we'll talk next week

<TabAtkins> I forgot that we size it to the grid by default. I think that's a reasonable argument for letting the grid be part of overflow.

<astearns> trackbot, end meeting

Summary of Action Items

Summary of Resolutions

  1. we will handle min-content track sizes as a clamp on automatic sizes
  2. Remove outline from list of supported styles on ::selection
  3. Drop style from this level, restrict API to ::before and ::after, add a note to why the other things are not yet supported
  4. Close this issue no change, there is already language in the spec
  5. Do not have any normative text about this. Add a note encouraging UAs to think about what should be done for printing and to use light when they know printing to paper
[End of minutes]

Minutes manually created (not a transcript), formatted by David Booth's scribe.perl version 1.154 (CVS log)
$Date: 2019/02/13 19:12:57 $

Scribe.perl diagnostic output

[Delete this section before finalizing the minutes.]
This is scribe.perl Revision: 1.154  of Date: 2018/09/25 16:35:56  
Check for newer version at http://dev.w3.org/cvsweb/~checkout~/2002/scribe/

Guessing input format: Irssi_ISO8601_Log_Text_Format (score 1.00)

FAILED: s/ falken /fantasai/
Succeeded: s/able/about/
Succeeded: s/I'm aware of/I care about/
Succeeded: s/detected/collected/
Succeeded: s/fremy/emilio/
Succeeded: s/element.style[foo]/setting element.style.foo/
Succeeded: s/join/compare to/
Succeeded: s/emilio/dino/
Default Present: astearns, dauwhe, dael, melanierichards, bdc, oriol, antenna, antonp, florian, dbaron, tgraham, rachelandrew, jensimmons, plinss[m], leaverou, chris, dino, emilio, svoisen, Rossen, TabAtkins, AmeliaBR, bkardell_, bradk, tantek
Present: astearns dauwhe dael melanierichards bdc oriol antenna antonp florian dbaron tgraham rachelandrew jensimmons plinss[m] leaverou chris dino emilio svoisen Rossen TabAtkins AmeliaBR bkardell_ bradk tantek
Found ScribeNick: dael
Inferring Scribes: dael

WARNING: No meeting chair found!
You should specify the meeting chair like this:
<dbooth> Chair: dbooth

Found Date: 13 Feb 2019
People with action items: 

WARNING: Input appears to use implicit continuation lines.
You may need the "-implicitContinuations" option.


WARNING: IRC log location not specified!  (You can ignore this 
warning if you do not want the generated minutes to contain 
a link to the original IRC log.)


[End of scribe.perl diagnostic output]