terribleMia’s avatarterribleMia’s Twitter Archive—№ 10,801

  1. Do people overwrite name-defining @-rules in CSS? Like two @/keyframes or @/properties with the same name, so the second one overrides the first? Did you know it works like that? Are there use-cases for it? Like overriding animations/properties from a third-party?
    1. …in reply to @TerribleMia
      If you say ✅ yes, can you tell me more about your use-cases?
      1. …in reply to @TerribleMia
        Follow-up: @/layer will allow us to change the cascade priority of CSS rules - creating your own "layers" of specificity. Should it also work on these @-rules? Should higher layers be able to override @-rules on lower layers? github.com/w3c/csswg-drafts/issues/6404