W3C home > Mailing lists > Public > www-style@w3.org > November 2016

Re: [css3-selectors]: Proposal: Adop the ::wrap pseudo element

From: fantasai <fantasai.lists@inkedblade.net>
Date: Sat, 22 Oct 2016 00:05:44 -0400
To: Christoph Päper <christoph.paeper@crissov.de>, CSS public list <www-style@w3.org>
Message-ID: <7e429fed-75df-eb06-140a-302f9c2057f3@inkedblade.net>
On 09/29/2016 03:33 AM, Christoph Päper wrote:
> fantasai <fantasai.lists@inkedblade.net>:
>>
>> While I totally agree with you on this, I believe this is a bug in HTML and not
>> in CSS. The wrapper element is useful for much more than just styling: it allows
>> anchors to target the term-definition set, and JS to operate on it as a single
>> element.
>>
>> (Also from a practical point of view, I get the impression from implementers that
>> it is much easier to implement parsing of a new HTML element than to implement a
>> new CSS pseudo-class that warps the element tree, so if one of your motivations
>> for trying to solve the problem in CSS instead of HTML is speed-to-market...
>> you're targetting the wrong place. ;)
>
> You’d need to convince Hixie et al., though.
>
> <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>
> <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.

Inasmuch as Hixie has a superhuman track record of being correct,
I think this is one case in which his opinion is wrong. Notice
also that his premise is incorrect: it is, as I mentioned before,
not only a styling problem.

~fantasai
Received on Thursday, 24 November 2016 06:21:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:05 UTC