W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

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

From: Matthew Dean via GitHub <sysbot+gh@w3.org>
Date: Mon, 26 Aug 2019 23:03:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-525066263-1566860585-sysbot+gh@w3.org>
@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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:02 UTC