10px');
  });

  test(':dir reacts to html attribute changing', function(done) {
    let el = fixture('dir');
    document.documentElement.setAttribute('dir', 'ltr');
    requestAnimationFrame(() => {
      assertComputed(el, 'rgb(0, 0, 255)', 'background-color');
      assertComputed(el.shadowRoot.querySelector('#foo'), '0px');
      assertComputed(el.shadowRoot.querySelector('.thing'), '0px');
      let inner = el.shadowRoot.querySelector('x-inner-dir');
      assertComputed(inner.shadowRoot.querySelector