Re: [csswg-drafts] CSS pseudo-selector for h1-h6? (#1008)

@emilio raised an interesting concern that I don't have a good solution for. If you have
:heading(1) { ... }
:heading(2) { ... }
:heading(3) { ... }
and then for some reason you end up with a level 4 heading on your page, the ideal "failure mode" is that it'll render the same as 3.

Maybe instead what you want is `heading-level` as a variable that can be used by `calc()` or some such.


Unless there's a relative clear answer here I'm inclined to leave this feature out of and save that for a future iteration.

cc @hober 

GitHub Notification of comment by annevk
Please view or discuss this issue at using your GitHub account

Received on Friday, 11 October 2019 09:35:53 UTC