Re: [csswg-drafts] Ability to style <details>/<summary> to be open (e.g. for print styles)

@jonjohnjohnson I don't think this would be a good fit for my `::contents` proposal. Here you want to select only some children of the `<details>` but not the `<summary>`. The `::wrap` proposal (#588) allows this bit doesn't seem a feasible feature, since it allows authors to produce non-tree DAGs.

> there are cases where the tree is shuffled around for layout, like `display: run-in`

But this reparenting happens in the box tree. I think `::contents` should live in the element tree just like `::before` and `::after`, so that things stay well-defined.

Then I think new pseudo-elements for detail parts would be better.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2084#issuecomment-410530481 using your GitHub account

Received on Sunday, 5 August 2018 16:12:53 UTC