Re: [csswg-drafts] [css-cascade] Custom cascade origins (#4470)

I am very excited by this proposal, and have definitely wished for this exact thing. Even if author's can't define _n_ origins, just two would go a long way: One for "base" styles, and another for "module" styles.

I think in most modern development, there are fundamental differences between the way these two types of styling. Ideally, I would typically want base styles to apply to the whole page, even piercing into Shadow DOM; but they would be of a lower priority origin, so module styles would always override them. I'd even be interested in a way to do something like `all: unset` that reverts my module styles but leaves my base styles applied. Related: https://github.com/w3c/csswg-drafts/issues/3547

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

Received on Friday, 31 January 2020 17:12:09 UTC