Re: [csswg-drafts] [all] Feature detection for CSS property support on certain elements (#4498)

I'd be a bit cautious here because of this sort of construct:

```html
<body style="text-transform: uppercase; font-family: serif">
 <svg>
  <foreignObject>
   <div>This text is uppercase serif</div>
  </foreignObject>
 </svg>
</body>
```
Both `text-transform` and `font-family` are inheritable, the fact that only the latter applies to SVG elements shouldn't prevent both from inheriting through. That's how I understand it anyway. Also consider that CSS can apply to any namespace, not just HTML and SVG. Namespace-based magic is a bad idea IMHO.

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

Received on Friday, 8 November 2019 09:31:26 UTC