W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2016

Re: [csswg-drafts] Proposal: Add wrapper pseudo element

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Tue, 18 Oct 2016 12:47:38 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-254496349-1476794856-sysbot+gh@w3.org>
Some important comments from the related [www-style 
thread](https://lists.w3.org/Archives/Public/www-style/2016Sep/0113.html):

@tabatkins:

> It's definitely not impossible! … New pseudos that wrap "real" 
elements in
some way are... not popular among implementors. The idea for ::wrap
goes back well over a decade, and the complexity it adds to the
platform versus the benefit you get, when compared to just adding
wrapper elements in your HTML, has meant that implementors have never
bitten at the idea.

@Crissov

> You’d need to convince Hixie et al., though.

> [Why isn’t there a grouping-type element for description lists to 
represent individual name-value groups (e.g., a “dli” element)? It 
would make styling as well as adding microdata to individual groups 
much 
easier.](https://wiki.whatwg.org/wiki/Rationale#Why_isn.E2.80.99t_there_a_grouping-type_element_for_description_lists_to_represent_individual_name-value_groups_.28e.g..2C_a_.E2.80.9Cdli.E2.80.9D_element.29.3F_It_would_make_styling_as_well_as_adding_microdata_to_individual_groups_much_easier..5B32.5D)
> [HTML should group &lt;dt&gt;s and &lt;dd&gt;s together in 
&lt;di&gt;s!](https://wiki.whatwg.org/wiki/FAQ#HTML_should_group_.3Cdt.3Es_and_.3Cdd.3Es_together_in_.3Cdi.3Es.21)
> 
> This FAQ says:
> 
>> This is a styling problem and should be fixed in CSS. There's no 
reason to add a grouping element to HTML, as the semantics are already
 unambiguous.

@Marat-Tanalin:

> So virtual containers are far more than just a way to group DT/DD 
elements, instead they would be a _powerful layout mechanism_ 
absolutely unachievable with current HTML and CSS.

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/588#issuecomment-254496349 
using your GitHub account
Received on Tuesday, 18 October 2016 12:47:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:04 UTC