<|start_filename|>jest.config.js<|end_filename|>
module.exports = {
  preset: 'ts-jest',
  testEnvironment: 'jsdom',
  reporters: [
    'default',
    'jest-junit'
  ],
  collectCoverageFrom: [
    'src/**/*.ts',
    '!src/exports/*.ts'
  ]
};

<|start_filename|>docs/src/page.css<|end_filename|>
html {
  height: 100%;
  font-family: Heebo,sans-serif;
  font-size: 12pt;
  font-weight: 300;
  background: #f3f3f6;
  color: #454548
}

body {
  margin: 0 auto;
  padding: 40px;
  max-width: 900px
}

:focus {
  outline-color: #f35
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 400
}

h1 {
  font-size: 40pt;
  line-height: 1
}

h2 {
  margin: 50px 0 0
}

hr {
  margin: 50px 0 20px;
  border: none;
  height: 1px;
  background: rgba(0,0,0,.2)
}

header {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between
}

header h1 {
  margin: 0
}

header a {
  flex: 0 0 auto;
  margin: 20px 0
}

header div {
  flex: 1 1 100%
}

pre code.hljs {
  padding: 0 1em;
  box-shadow: inset 0 0 4px rgba(0,0,0,.3);
  background: #fff
}

[resize],
#performance-example div {
  min-width: 100px;
  min-height: 100px;
  height: 100px;
  position: relative;
  white-space: nowrap;
  background: #f35;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  user-select: none;
  box-sizing: border-box;
  background-clip: content-box;
  border: 0 solid rgba(0,0,0,.2);
  cursor: pointer
}

[resize]:after {
  content: attr(dimensions);
  font-weight: 400;
  padding: 2px 5px 0
}

#pseudo-example:focus,#pseudo-example:hover {
  border-width: 0
}

#pseudo-example:active {
  border-width: 5px
}

#transition-example {
  transition: border-width 1s ease
}

#transition-example[fill] {
  border-width: 0
}

#animation-example {
  animation: fill-in-out 1s infinite alternate;
  animation-play-state: paused
}

#animation-example[animate] {
  animation-play-state: running
}

#performance-example {
  display: flex;
  flex-flow: row wrap;
  animation: squeeze-in-out 1s infinite alternate;
  animation-play-state: paused;
  width: 100%;
  margin: 0;
  font-size: 50%;
  cursor: pointer
}

#performance-example:hover {
  outline: 1px solid #f35
}

#performance-example[animate] {
  animation-play-state: running
}

#performance-example div {
  margin: 2px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 10px;
  width: calc(5% - 4px);
  height: auto
}

.interactive-example {
  border-width: 0 20vw
}

@media (min-width: 900px) {
  .interactive-example {
      border-width:0 200px
  }
}

@keyframes fill-in-out {
  to {
      border-width: 0
  }
}

@keyframes squeeze-in-out {
  to {
      width: 50%
  }
}


<|start_filename|>rollup.config.js<|end_filename|>
module.exports = {
  input: 'lib/exports/resize-observer.js',
  output: {
    file: 'lib/exports/resize-observer.umd.js',
    format: 'umd',
    name: 'ResizeObserver'
  }
};