Re: [csswg-drafts] [Meta][Editorial] Define bags of CSS properties to be referenced by allowlists (#9453)

The CSS Working Group just discussed `[Meta][Editorial] Define bags of CSS properties to be referenced by allowlists`.

<details><summary>The full IRC log of that discussion</summary>
&lt;emilio> lea: not about author-facing feature, but organizing specs better<br>
&lt;emilio> ... we have a bunch of places which have some restrictions, like pseudo-elements, pseudo-elements (:visited), and a particularly egregious one is WebVTT<br>
&lt;emilio> ... they should not be maintaining external lists, but right now there's no other way<br>
&lt;emilio> ... proposal is to decompose these<br>
&lt;emilio> ... into defined lists with defined purposes<br>
&lt;astearns> ack fantasai<br>
&lt;florian> q+<br>
&lt;emilio> ... some of these point to each other (like pseudos depending on each other)<br>
&lt;emilio> ... but they probably shouldn't<br>
&lt;emilio> fantasai: I think it's a great idea in theory<br>
&lt;emilio> ... the problem is that it's very ad-hoc per pseudo-element<br>
&lt;lea> q+<br>
&lt;emilio> ... aside from highlights we don't really have a good grouping<br>
&lt;emilio> ... and highlights are already well defined<br>
&lt;emilio> ... I think in the future we might have a better idea about how to do this<br>
&lt;emilio> ... currently I don't really see a lot of commonality<br>
&lt;emilio> ... we could define set of properties that are related, like "inline layout related"<br>
&lt;emilio> ... but there's some interesting edge cases<br>
&lt;emilio> ... I like the idea in theory but not sure about practicality<br>
&lt;emilio> ... none of these properties relate to ::cue<br>
&lt;emilio> ... in the future we might come up with stuff easy to coalesce<br>
&lt;emilio> ... I see the problem but I don't see how to reasonably solve it<br>
&lt;emilio> q+<br>
&lt;astearns> ack florian<br>
&lt;fantasai> s/reasonably/practically/<br>
&lt;emilio> florian: another thing is that if these existed it'd be more convenient if they are centrally defined<br>
&lt;schenney> q+<br>
&lt;emilio> ... what's more maintainable is a yes/no on the property definition<br>
&lt;emilio> ... it's a lot less usable<br>
&lt;astearns> automation can make that usable<br>
&lt;emilio> ... because then we need bikeshed to generate the thing<br>
&lt;emilio> ... having to choose between usable and maintainable is not amazing<br>
&lt;astearns> ack lea<br>
&lt;emilio> lea: I don't think it should be an either / or<br>
&lt;emilio> ... there's lot of value even if we find some common groups<br>
&lt;emilio> ... like "this group minus that" or "this group plus these three"<br>
&lt;emilio> ... an external group like WebVTT is much more likely to refer to a group<br>
&lt;emilio> ... rather than having a random pseudo-element that happens to have the same restrictions<br>
&lt;emilio> ... replying to florian I think it makes sense to make this part of a property definition<br>
&lt;emilio> ... we could probably have something that is basically tags<br>
&lt;fantasai> "Categories"<br>
&lt;emilio> ... like, categories that these properties already belong to<br>
&lt;emilio> ... maybe it's crucial enough that we wanna keep it separate<br>
&lt;emilio> ... but yeah we could introduce a single "groups" property rather than any individual group<br>
&lt;astearns> ack emilio<br>
&lt;dholbert> emilio (IRC): I agree this is rather messy<br>
&lt;dholbert> ... The binary-switch thing is kinda how it works in browsers. Each property has a "does this apply to ::first-line,..." etc. we have that centrally defined somewhere. Easy to map to the spec. Would be nice to have it defined on the property itself (in the spec)<br>
&lt;dholbert> ... I'm not sure that historically implementations and the spec match on a lot of these restrictions. e.g. for ::first-line, one of the restrictions is that it doesn't support non-inherited stuff. Not sure how to best-define it<br>
&lt;dholbert> ... maybe nice to have on-off buckets for various pseudos.  Hard to define more generic groups. "inherited text properties"? "color properties?" "properties that don't affect layout"?<br>
&lt;dholbert> lea (IRC): seems like reasonable bags<br>
&lt;dholbert> fantasai (IRC): but which will be actually used<br>
&lt;dholbert> fantasai (IRC): hightlight pseudos could be considered "stuff that shows the bounds of the box"<br>
&lt;emilio> fantasai: most of them are pretty ad-hoc<br>
&lt;fantasai> s/shows/does not show/<br>
&lt;astearns> ack schenney<br>
&lt;emilio> schenney: I think I'm supporting some of the things that emilio said. non-layout-modified is the basis for highlight pseudos. The other one is properties that do not affect overflow<br>
&lt;emilio> ... key point is that it's rather useful in preparing specs<br>
&lt;astearns> ack dbaron<br>
&lt;emilio> dbaron: one concern about putting them in propdef (although it's not really a new problem, just makes it more visible) is that we need a good description of what makes a property go into a set<br>
&lt;emilio> ... we need to write down what the principles about these sets are<br>
&lt;emilio> ... so that someone writing a propdef table can actually get it right<br>
&lt;lea> q+<br>
&lt;emilio> ... this is sort of already a problem that we have<br>
&lt;emilio> ... but we should try and avoid making it worse<br>
&lt;astearns> zakim, close queue<br>
&lt;Zakim> ok, astearns, the speaker queue is closed<br>
&lt;emilio> ... and we should try to make clear what rules each group follow<br>
&lt;astearns> ack lea<br>
&lt;emilio> s/follow/follows<br>
&lt;emilio> lea: I think dbaron makes a very good point, even though kind of orthogonal<br>
&lt;emilio> ... that's why we are pushing for design principles in w3c<br>
&lt;emilio> ... we could have design principles in w3c<br>
&lt;emilio> ... but it's important to have proper design principles<br>
&lt;emilio> ... not something in the wiki<br>
&lt;emilio> astearns: my suggestion was going to be putting it in the wiki<br>
&lt;emilio> ... not sure we're ready for a resolution<br>
&lt;emilio> ... we should keep thinking about it<br>
&lt;emilio> ... continuing in the issue or documenting / listing proposed bags / the criteria for them in the wiki<br>
&lt;dholbert> emilio (IRC): one suggestion<br>
&lt;dholbert> emilio (IRC): for things that have restrictions currently, can we resolve on documenting them?<br>
&lt;dholbert> emilio (IRC): the restrictions that we've got are there for a reason. Not changing overflow when you change selection, etc<br>
&lt;dholbert> ... first-line, placeholder, marker, ... for some of these, it's not written down. Can we get together and write the reasoning down<br>
&lt;dholbert> astearns (IRC): we should have separate discussions for the existing lists, yeah (separate from general defining-the-bags idea)<br>
&lt;dholbert> astearns (IRC): please also continue discussing this in the bags issue<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9453#issuecomment-1944508823 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 14 February 2024 20:05:46 UTC