@use "../../shared/messages/" as *;

/* E0012: All direct children of <dl> must only be <dt> or <dd> */
dl > *:not(dt, dd) {
  &::after {
    @include contentMessage(error, "E0012", "List markup invalid. Ensure that the only direct children of <dl> are <dt> and <dd>.");
  }
}

/* E0011: All direct children of <ul> and <ol> must only be <li>, <script> or <template> */
ol,
ul {
  > *:not(li, script, template) {
    &::after {
      @include contentMessage(error, "E0011", "List markup invalid. Ensure <li>, <script> or <template> are the only direct children of <ul> or <ol>.");
    }
  }
}
