[Webkit-unassigned] [Bug 30015] New: text-transform:capitalize is failing in CSS2.1 test suite

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 2 04:57:20 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30015

           Summary: text-transform:capitalize is failing in CSS2.1 test
                    suite
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hamaji at chromium.org


(Though this is duplicate of Bug 23267, I'd like to open separate bug for this
test case as the original bug has actually 3 bugs.)

Let me explain why t1605-c545-txttrans-00-b-ag
(http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/t1605-c545-txttrans-00-b-ag.htm)
is failing. This test is exercising CSS' text-transform property. This test is
failing for text-transform:capitalize. For the following texts,

Xx xx x. (x.x. XX)
Pp pp p. (p.p. PP)
Éé éé é. (é.é. ÉÉ)

the test suite is expecting

Xx Xx X. (x.x. XX)
Pp Pp P. (p.p. PP)
Éé Éé É. (é.é. ÉÉ)

but WebKit is capitalizing lower characters in parens like

Xx Xx X. (X.X. XX)
Pp Pp P. (P.P. PP)
Éé Éé É. (É.É. ÉÉ)

For example, this behavior converts "e.g.," into "E.G.,", which may look weird.
You can see this example in another CSS test suite,
LayoutTests/css1/text_properties/text_transform.html
(http://www.w3.org/Style/CSS/Test/CSS1/current/sec545.htm).

The CSS1 test suite is saying "There Should Be A Capital Letter After A
Non-Breaking Space (&Nbsp;).". I guess it may mean a character should be
capitalized if and only if it comes after whitespaces. The CSS2.1 test suite is
expecting this behavior as well.

Now, our implementation of capitalization uses ICU's word breaking, which is
kind of "smart". For example, it converts from "hi" to "Hi", from foo's to
Foo's, from layout-tests to Layout-Tests, and from e.g., to E.G., .

If we use the approach the CSS test suite may be expecting (capitalize
characters iff. it comes after whitespaces), the results will be "hi", Foo's,
Layout-tests, and E.g., specifically.

I'm not sure what is the best behavior. It seems that we intentionally chose
the current behavior in Bug 4171. If we decide not to fix this, please just
make this bug WONTFIX. Otherwise, my patch will fix this.

FYI, I summarized results for some texts using 4 browsers.

http://spreadsheets.google.com/pub?key=tGCsFWV1bwyYanB9y4Ri9IQ&output=html

Bug 3406 is also related to this bug.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list