Re: [csswg-drafts] [css-cascade-5] Reconsider placement of unlayered styles, for better progressive enhancement? (#6284)

The CSS Working Group just discussed `Reconsider placement of unlayered styles, for better progressive enhancement?`, and agreed to the following:

* `RESOLVED: Prop: Reverse the prior resolution. Unlayered styles are highest priority`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: Reconsider placement of unlayered styles, for better progressive enhancement?<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/6284<br>
&lt;dael> miriam: Introducing, but fremy may want to jump in<br>
&lt;dael> miriam: In initial proposal had layers under default styles. At some point I proposed we change to have them at bottom of stack. Better matches user expectations. But does not match main use cases as fremy points out<br>
&lt;dael> miriam: People may want some of both. Have separate issue for that. Question is did we get the default right<br>
&lt;fremy> q+<br>
&lt;astearns> ack fantasai<br>
&lt;TabAtkins> q+<br>
&lt;dael> fantasai: I think somewhat useful to think about 2 positions as innermost and outermost. Outermost is lowest priority rules. Innermost is highest priority.<br>
&lt;astearns> ack fremy<br>
&lt;fantasai> s/rules/rules unless !important, in which case highest priority/<br>
&lt;dael> fremy: I reopened this because somebody that used to work at stripe posted example. At first thought browser was wrong b/c order seemed weird.<br>
&lt;fantasai> s/is highest priority/is highest priority unless !important in which case lowest priority<br>
&lt;florian> q+<br>
&lt;dael> fremy: Idea is you have layers that are base and theme. Then you add normal styles and declaration in the style was specific but overwritten by base.<br>
&lt;dael> fremy: Main reason layers nice I thought is CSS resets where you can't reset something because specificity of rule not easy to have resets<br>
&lt;dael> fremy: If the reset is above style of site it doesn't work. That's reason I think not right call. most obvious example to me would prefer styles to be lower than main styles of site.<br>
&lt;jensimmons> q+<br>
&lt;dael> fremy: It would be useful to see examples of other way<br>
&lt;astearns> ack TabAtkins<br>
&lt;astearns> ack florian<br>
&lt;dael> TabAtkins: I don't have a strong opinion on default. Important we prioritize issue to let you put unlayered at a spot. If we do that default doesn't matter as much<br>
&lt;dael> florian: Agree with prioritizing. I lean toward fremy b/c if we keep new unlayered is just a fallback. Unlayered is legacy and it feels weird that main way to write css is a fallback. My intuition is same as fremy.<br>
&lt;astearns> ack jensimmons<br>
&lt;dael> jensimmons: I agree. Sounds like we're mostly agreed. Unlayered should be most specific. Be confusing to write code as we have for 20 years and have it not work. Layered will be most organized and messy will be more specific and need to override<br>
&lt;florian> +1 to jen<br>
&lt;dael> jensimmons: Agree with fremy<br>
&lt;fantasai> +1<br>
&lt;astearns> ack fantasai<br>
&lt;dael> fantasai: I wanted to note seems that for files layered that are imported it def. seems expected behavior is lower priority<br>
&lt;jensimmons> and yes to having a way for Authors to change this default!<br>
&lt;dael> fantasai: Inline @layer blocks intuition might go other way where making more specific. I think if we have to pick a default I think fremy argument makes sense with jensimmons explaination of why<br>
&lt;dael> fantasai: Could go different with @import and @layer but might be more confusing<br>
&lt;dael> fantasai: Would be useful to create one off roles and decide if it goes above or below a layer<br>
&lt;dael> fremy: I think I agree. IN the other issue about how to spec ordering I made a similar proposal. This layer is priority and this is normal. That's the other issue, though<br>
&lt;dael> miriam: Swayed by this. In terms of other issue we don't want to go into details but do we want to keep it as defer to next level or do we want to try and solve?<br>
&lt;dael> fantasai: Sounds like we want to solve<br>
&lt;dael> jensimmons: Agree<br>
&lt;dael> TabAtkins: Only think that's difficult is figuring out when [missed] should be<br>
&lt;dael> jensimmons: Useful in transition to let authros decide what happens. Waiting for that tool could be painful<br>
&lt;TabAtkins> s/when [missed]/what name it/<br>
&lt;dael> astearns: Prop: Reverse the prior resolution. Unlayered styles are highest priority<br>
&lt;dael> astearns: Obj?<br>
&lt;dael> RESOLVED: Prop: Reverse the prior resolution. Unlayered styles are highest priority<br>
</details>


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


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

Received on Wednesday, 6 October 2021 22:25:45 UTC