Forum Bugs

Can't use scoped style tags

xmlguy74
I am attempting to use the following HTML5 syntax, and it is not working. The whole document turns red. It should not.

<html>
<head>
<title>New Document</title>
</head>
<body>
<div>
<style scoped="scoped">
p {
color:red;
}
</style>
<p>This should be red.</p>
</div>

<p>This should be black.</p>

</body>
</html>
mikeday
Scoped style sheets are not supported yet, so you will need to do the scoping manually, eg. by explicitly matching an ancestor element in the selector.