1

I've just tried this:

<style>
  rgraph:option {
    background: red;
    padding: 3px;
  }
</style>

<rgraph:option>canvas</rgraph:option>

And in Chrome (69.0.3497.100) it worked. But not IE 11 or Firefox.

And what is it? Obviously some new CSS feature that's implemented in Chrome only.

I do like the idea of being able to use custom tag names.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Richard
  • 4,809
  • 3
  • 27
  • 46
  • Whuuuut. Chrome doesn't interpret that ":option" as an unrecognized pseudo-class? Usually when working with pseudo-XML namespaces (i.e. not actual XHTML) you escape the colon in the selector with a backslash so it doesn't get treated as a pseudo-class symbol. – BoltClock Oct 02 '18 at 11:48
  • Does not work in my Version 69.0.3497.100 (Official Build) (64-bit) – mplungjan Oct 02 '18 at 11:49
  • @mplungjan: I wonder if including a copy of RGraph (of which Richard appears to be the author) might have any effect on things. – BoltClock Oct 02 '18 at 11:56
  • Interesting - I just tried a very basic HTML page on my desktop and it didn't work. Shucks. – Richard Oct 02 '18 at 12:17
  • And now I can't reproduce it at all. :-( – Richard Oct 02 '18 at 12:21
  • Though if I take out the colon and use a hyphen instead it works in Chrome, FF and IE11: Foo – Richard Oct 02 '18 at 12:29
  • I can confirm that – mplungjan Oct 02 '18 at 13:02

0 Answers0