Re: [csswg-drafts] [css-scoping] Please bring back scoped styles (#3547)

Ah, yes. I see what you’re saying. I think you’re right.

The question of styles “leaking in” is an interesting one. Because I think in most cases, there are some style you would want to leak in, and others you wouldn’t.

Stepping back a bit, I think what I/we **really** want here is a first-class way to distinguish between base styles and “module” styles. Then you could define a bunch of base styles for the page (font family, color, default margins, etc.); these you would want to “leak in” to everything, as your default baseline. Then, on top of that, a way to define modular styles (module A has a blue heading, and some larger margins, module B has these borders, etc.); these you would want to scope only to their respective modules, and not leak in or out.

-- 
GitHub Notification of comment by keithjgrant
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3547#issuecomment-458232087 using your GitHub account

Received on Monday, 28 January 2019 17:49:10 UTC