W3C home > Mailing lists > Public > public-css-testsuite@w3.org > October 2012

Re: Testing border-radius

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Mon, 22 Oct 2012 08:33:38 +0800
Message-ID: <50849462.10600@oupeng.com>
To: Gérard Talbot <css21testsuite@gtalbot.org>
CC: W3C CSS Test Suite mailing list <public-css-testsuite@w3.org>, TTWF - beijing <testwebforwardbeijing@googlegroups.com>, 小黄鱼 <liz@oupeng.com>
(12/10/22 3:09), Gérard Talbot wrote:
> As far as I am concerned and involved, such goal is a rule: you want
> only-CSS1-capable browsers and only-CSS2.1-capable browsers to fail
> such tests. Sometimes, such goal is not possible, achievable,
> therefore there are exceptions.

For any 'border-radius' reftests, it is possible. You just include a
dummy reftest like the one I come up with. The question is, doing that
seems to obscure the real test and so I would not think it is a good idea.

(12/10/22 3:09), Gérard Talbot wrote:
> If I understand your test - and I'm not sure that I do right now - ,
> this is an extreme and edge case.

The test is

https://test.csswg.org/shepherd/testcase/border-radius-clipping/name/border-radius-clipping/

Is the part that you consider extreme and edge actually the "dummy" part?

(12/10/22 3:43), Gérard Talbot wrote:
> Such requirement is not obtainable realistically speaking.
> 
> E.g.
> 
> http://test.csswg.org/source/contributors/ttwf_bj/silverma/submitted/border-radius-horizontal-value-is-zero.html
> 
> This is an OK test; this is a reasonable test. Albeit there are some
> issues with the test but, as far as failing in
> non-capable-CSS3-border-radius browsers, the test is adequate,
> appropriate.

I am not getting this. Commenting out 'border-radius' in this test would
still satisfly "The test passes if the rectangle has four square corners
(no red is shown)." How does it fail non-capable-CSS3-border-radius
browsers?

>> 2) have some
>> statements like "FAIL if the corners are not rounded."
> 
> I suggest to use
> 
> Test passes if the 4 corners of the rectangle are <strong>rounded</strong>.
> 
> Test passes if the 4 corners of the rectangle are <strong>square</strong>.
> 
> I recommend to use the same introductory formulation: Test passes if
> [boolean condition].

We could do that, but aren't reftests supposed to not to require human
inspection?

>> So, should we drop that requirement or do we actually allow test
>> submitters to do something like 2) ? I feel like I am misunderstanding
>> the requirement so I'd like to be educated.
> 
> There is a number of situations where border-radius declarations can not
> create rounded corners. Therefore, such requirement can not in all
> fairness be applied.

What do we do for test cases like these then? Do we have a list of these
exceptions?


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Monday, 22 October 2012 00:39:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 22 October 2012 00:39:51 GMT