openstax / css-manipulate

Do more with CSS!
https://jsfiddle.net/philschatz/hjk2z4af/
5 stars 0 forks source link

CSS Namespaces #6

Closed aiwenar closed 6 years ago

aiwenar commented 6 years ago

Example XHTML

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:test="urn:test">
    <test:test>
        <test:a>Hello!</test:a>
    </test:test>
</html>

Example CSS

@namespace test "urn:test";
test|*::before {
  tag-name-set: div;
  content: "Hello!";
}

Excepted result A div is inserted into every test:* element.

Actual result Nothing is changed.

philschatz commented 6 years ago

Should be fixed in 2.9.0 😄