Reset for Slots

Reset for slots, but preserving the "cursor" property set in the body.

by David Iglesias

HTML

<body>
  <p>
    This is some default style
  </p>
  <p class="reset">
    This is <tt>all: initial;</tt>
  </p>
  <p class="inherit-cursor">
    This paragraph also has <tt>cursor: inherit;</tt>
  </p>
</body>

CSS

* { font-family: sans-serif; }
tt { font-family: monospace; }
p { display: block !important; }

/* Default styles set by flutter */
body {
  color: red;
  cursor: pointer;
}

/* Original reset */
.reset {
  all: initial;
}

/* Cursor-respecting reset */
.inherit-cursor {
  all: initial;
  cursor: inherit;
}