- From: fergald via GitHub <sysbot+gh@w3.org>
- Date: Tue, 15 Jan 2019 02:45:30 +0000
- To: public-css-archive@w3.org
@stefsullrew do you have a feel for whether you would want allow-by-default and blacklist or deny-by-default and whitelist or do you think both are useful/needed. @emilio I think !important can kind of achieve it but it seems hard to use (correct me if I'm wrong below) - only allows blacklisting. So no to say "only colour can be overridden" because you have to explicitly add a an !important rule for every property - access control would not be orthogonal style values. !important applies to a rule, not a property. You can't just mark a property as important, you have to give it an explicit value. This means you may find yourself specifying default values just because you want to prevent override. It also means you can't reuse chunks of style sheets inside 2 custom elements if one of them wants to prevent override and the other doesn't - wouldn't the outer style rule be able to add !important too and end up overriding? Is this desirable? -- GitHub Notification of comment by fergald Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3506#issuecomment-454247805 using your GitHub account
Received on Tuesday, 15 January 2019 02:45:31 UTC