-
Notifications
You must be signed in to change notification settings - Fork 756
Description
Please find the information of ::wrap pseudo element through this hyperlink.
There are abundant use cases of this pseudo element. For example, because there has been no wrapper element for wrapping <dt> and <dd> pairs in description list <dl>, web developers have been having no choice but to resort to JavaScript to insert <li role="presentation"></li> into <dl> or even use less semantic list elements like <ul>. Yet another example is that layout designs such as "left and right columns" is everywhere so we have been having to add extra wrapper <div>s into HTML for that kind of purpose.
The aforementioned examples are just a tip of iceberg. The use cases of ::wrap are a lot more than the use cases of :first-child, :empty, etc.
Could we please have this ::wrap pseudo element be formally adopted? With this pseudo element, web developers would be able to write more semantic HTML and no longer have to resort to JavaScript, which can result in the unwanted FOUC. From the aspect of use case, there seems to be no reason why this pseudo element should not be adopted.