W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2013

Testing CSS tokenization

From: Simon Sapin <simon.sapin@exyr.org>
Date: Mon, 17 Jun 2013 21:40:02 +0100
Message-ID: <51BF7422.8020506@exyr.org>
To: "public-css-testsuite@w3.org mailing list" <public-css-testsuite@w3.org>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>

So, Iíve been implementing the new CSS Syntax draft:


And of course, Iím writing tests. This time around, Iím writing them in 
JSON in the hope to share them in multiple implementations. (Iím working 
on at least two of them myself.)

(This is very much "in progress", but I hope you get the idea.)

In order to test tokenization, I really want to look at the output of 
the tokenizer. (Actually the output of "Parse a list of component 
values", which is close enough.) Unfortunately, the tokenizer is not 
exposed on the web. I can not take these tests and run them in any 
browsers; this would require writing custom code against the browserís 
source code. I understand this is not acceptable for a W3C specís test 
suite, but anything else has to be much higher level and I donít find it 
very satisfying.

For example, many corner cases of the tokenizer are not tested AFAICT by 
the 2.1:


What do you think? What is the way to test a spec such as CSS Syntax 
whose product is not directly exposed to the web platform?

Simon Sapin
Received on Monday, 17 June 2013 20:40:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:19 UTC