This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
<test-case name="millisecs-018" xmlns="http://www.w3.org/2010/09/qt-fots-catalog"> <description>Fractional seconds: width modifier trumps picture </description> <created by="Michael Kay" on="2016-07-21"/> <test><![CDATA[format-time(xs:time('12:01:01.123'), "[f111,2-2]")]]></test> <result> <assert-eq>"12"</assert-eq> </result> </test-case> The description reads "width modifier trumps picture" but this is not how the spec reads. It says (9.8.4.5) "If there is a width modifier, then the first presentation modifier is adjusted ..." and the following logic does not take digits away. I would expect the result of this test to be 123.
You're right. I've fixed this, and added a couple more tests.
Aren't these two affected in an identical way? <test-case name="millisecs-025"> <description>Fractional seconds: both width modifier and picture </description> <created by="Michael Kay" on="2016-09-13"/> <test>format-time(xs:time('12:01:01.1'), "[f1###,3-3]")</test> <result> <assert-eq>"100"</assert-eq> </result> </test-case> <test-case name="millisecs-026"> <description>Fractional seconds: both width modifier and picture </description> <created by="Michael Kay" on="2016-09-13"/> <test>format-time(xs:time('12:01:01.5'), "[f1###,2-3]")</test> <result> <assert-eq>"50"</assert-eq> </result> </test-case>