Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: an idea to solve the outline problem #7687

Closed
querykuma opened this issue Mar 8, 2022 · 1 comment
Closed

Proposal: an idea to solve the outline problem #7687

querykuma opened this issue Mar 8, 2022 · 1 comment

Comments

@querykuma
Copy link

I have an idea to solve outline problem #83.
There are two types of outlines: flat and tree.
The flat outline uses only h1-h6 elements.
The tree outline uses sectioning content elements and sectioning root elements[1].

The solution is to have an outline attribute on the sectioning root element.
Descendant elements under a sectioning root element with outline="flat" attribute are considered to have flat outlines.
Descendant elements under a sectioning root element with outline="tree" attribute are considered to have tree outlines.
The default attribute is "flat".
Attributes may be nested.

<body outline="tree">
	<h1>h1</h1>
	<section>
		<h2>h2</h2>
		<blockquote outline="flat">
			<h1>flat h1</h1>
			<h2>flat h2</h2>
		</blockquote>
	</section>
</body>

[1] https://html.spec.whatwg.org/multipage/sections.html#outlines

@querykuma
Copy link
Author

I changed mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant