Re: [csswg-drafts] [css-selectors][css-namespaces] Lexical Scoping (#4061)

@chriseppstein Hmm, maybe this syntax is throwing me off. I don't understand this:

```css
@namespace local();
:scope p { color: darkgray; font-size: 16px; }
```
```html
<link rel="namespaced stylesheet" namespace="markdown">
<div id="markdown-container" markdown:class>
  <!-- transformed from markdown -->
  <p>This text is dark gray and has a font size of 16px.</p>
</div>
```
Why does this say `markdown:class` when it has nothing to do with a class name? Are you just using XML namespaces to attach a namespace to the element? If so, why on the class attribute? It just feels arbitrary and odd. A class is just a class (or list of them). I don't see why it has anything to do with selectors based on what you wrote in your CSS. If I'm just selecting `<p>`, why do I need `:class` ? 🤔 

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

Received on Monday, 26 August 2019 23:03:09 UTC