Dlaczego mój selektor jQuery: not () nie działa w CSS?

Mam ten układ:

<div id="sectors">
    <h1>Sectors</h1>
    <div id="s7-1103" class="alpha"></div>
    <div id="s8-1104" class="alpha"></div>
    <div id="s1-7605" class="beta"></div>
    <div id="s0-7479"></div>
    <div id="s2-6528" class="gamma"></div>
    <div id="s0-4444"></div>
</div>

Z tymi regułami CSS:

#sectors {
    width: 584px;
    background-color: #ffd;
    margin: 1.5em;
    border: 4px dashed #000;
    padding: 16px;
    overflow: auto;
}

#sectors > h1 {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}

#sectors > div {
    float: left;
    position: relative;
    width: 180px;
    height: 240px;
    margin: 16px 0 0 16px;
    border-style: solid;
    border-width: 2px;
}

#sectors > div::after {
    display: block;
    position: absolute;
    width: 100%;
    bottom: 0;
    font-weight: bold;
    text-align: center;
    text-transform: capitalize;
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 2px solid;
    content: attr(id) ' - ' attr(class);
}

#sectors > div:nth-of-type(3n+1) {
    margin-left: 0;
}

#sectors > div.alpha { color: #b00; background-color: #ffe0d9; }
#sectors > div.beta  { color: #05b; background-color: #c0edff; }
#sectors > div.gamma { color: #362; background-color: #d4f6c3; }

Używam jQuery, aby dodaćunassigned klasa do sektorów, które nie mają innej klasyalpha, beta lubgamma:

$('#sectors > div:not(.alpha, .beta, .gamma)').addClass('unassigned');

Następnie stosuję różne reguły do ​​tej klasy:

#sectors > div.unassigned {
    color: #808080;
    background-color: #e9e9e9;
    opacity: 0.5;
}

#sectors > div.unassigned::after {
    content: attr(id) ' - Unassigned';
}

#sectors > div.unassigned:hover {
    opacity: 1.0;
}

I wszystko działa bez zarzutu w nowoczesnych przeglądarkach.

Interaktywny js Podgląd podglądu

Ale widząc to:not() selektor w jQuery oparta jest na:not() w CSS3, Myślałem, że mogę przenieść go bezpośrednio do mojego arkusza stylów, więc nie musiałbym polegać na dodaniu dodatkowej klasy za pomocą jQuery. Poza tym nie jestem zbytnio zainteresowany obsługą starszych wersji IE, a inne przeglądarki mają doskonałą obsługę:not() selektor.

Więc próbuję zmienić.unassigned część powyżej do tego (wiedząc, że będę miał tylko sektory Α, Β i Γ w moim układzie):

#sectors > div:not(.alpha, .beta, .gamma) {
    color: #808080;
    background-color: #e9e9e9;
    opacity: 0.5;
}

#sectors > div:not(.alpha, .beta, .gamma)::after {
    content: attr(id) ' - Unassigned';
}

#sectors > div:not(.alpha, .beta, .gamma):hover {
    opacity: 1.0;
}

Ale jak tylko to zrobię, przestaje działaćwszystkie przeglądarki! Moje nieprzypisane sektory nie są już wyszarzone, wyblakłe lub oznaczone jako „Nieprzypisane”.

Zaktualizowany, ale nie tak interaktywny js Podgląd podglądu

Dlaczego:not() selektor działa w jQuery, ale nie działa w CSS? Czy nie powinno to działać identycznie w obu miejscach, ponieważ jQuery twierdzi, że jest „Zgodny z CSS3”, czy jest coś, czego brakuje?

Czy istnieje obejście tego czystego CSS lub czy muszę polegać na skrypcie?

questionAnswers(1)

yourAnswerToTheQuestion