}
      custom-state:--green + p {
        color: #00f;
      }
    </style>
    <script>
    customElements.define('custom-state', class extends HTMLElement {
      connectedCallback() {
        this.elementInternals = this.attachInternals();
      }
    });

    test(function() {
        assert_false(myCE.elementInternals.states.has('--green'));
        assert_equals(getComputedStyle(myCE).getPropertyValue('color'), 'rgb(255, 0, 0)');
    }, "state selector has no influence when state is not applied");

 