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

> Wait, is that really the case @tabatkins? I just tested in the two browsers that support revert (Safari and Firefox 67) and it didn't shut down inheritance at all. It also, however, did not prevent outside inherited styles such as font-size and color declared on a parent element from leaking in. Now I imagine it's possible the implementation is buggy, but that behavior kinda makes sense to me...?

Ah, you're right. `revert` "rolls back the cascade", so it acts like there are no rules at all, and inheritance is allowed to occur.

But yeah, that then doesn't block outside rules *or* inheritance from trickling into the subtree. ^_^

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

Received on Wednesday, 13 March 2019 15:41:42 UTC