[csswg-drafts] [css-contain-1] Use proper HTML in markup example

thierryk has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-contain-1] Use proper HTML in markup example ==
In [section 2 (Strong 
Containment)](https://www.w3.org/TR/css-contain-1/#contain-property), 
the markup example is as follow:

```html
<body>
  <aside class='sidebar'>...</aside>
  <article class='messages'>
    <section class='message'>
      Lol, check out this dog: images.example.com/jsK3jkl
    </section>
    <section class='message'>
      I had a ham sandwich today. #goodtimes
    </section>
    <section class='message'>
      I have political opinions that you need to hear!
    </section>
    …
  </article>
</body>
```

I do not think this is a proper use of `<section>` (as sections 
"should" have headings). Looking at the repetition of the class 
`message` I'd suggest using a `ul` inside `article` with `li` 
replacing `section`; but other constructs could work as well&mdash;it 
is just that I don't think `section` is the right element here.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/1058 using your GitHub 
account

Received on Thursday, 23 February 2017 16:31:02 UTC