Description
I want to stress that I am of the opinion that
aria-level
orrole=heading
should not impact:heading()
; they are readily selectable today and I don't think aria should have that dramatic an impact on other selectors.
The intent of headingoffset
is to make it easier for content with heading elements to appear on different pages in different contexts where the appropriate heading level is different; specifically, the heading level as it is presented in the accessibility tree.
The intent of a heading()
is to ease adjusting the styling of headings so that its consistent not with the elements used but their heading level in the accessibility tree.
If the intent is to help accessibility tree heading levels and the DOM elements they're based on correspond, it should include all the heading levels in that tree, regardless of how they came to be there.