heydon,
@heydon@front-end.social avatar

Experimenting more with CSS tests. See https://heydonworks.com/article/testing-html-with-modern-css/

:has(h1):has(:is(h3,h4,h5,h6)):not(:has(h2)), :has(h2):has(:is(h4,h5,h6)):not(:has(h3)), :has(h3):has(:is(h5,h6)):not(:has(h4)), :has(h4):has(h6):not(:has(h5)) {
outline: var(--error-outline);
--error-skipped-heading-level: 'You have skipped a heading level. For example, a subsection within a section introduced by an h3 is currently introduced by an h5 or h6';
}

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • khanakhh
  • InstantRegret
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • tacticalgear
  • kavyap
  • thenastyranch
  • cubers
  • megavids
  • Durango
  • cisconetworking
  • Leos
  • modclub
  • ethstaker
  • GTA5RPClips
  • osvaldo12
  • normalnudes
  • provamag3
  • tester
  • anitta
  • JUstTest
  • lostlight
  • All magazines