Skip to content

layout: Only apply text-transform: capitalize to lowercase typographical letter units - #46910

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:text-transform-typographical
Aug 24, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:text-transform-typographical

Conversation

@mrobinson

@mrobinson mrobinson commented Jul 31, 2026 •

Copy link
Copy Markdown
Member

The specification is pretty clear that the first lowercase typographical
letter unit of a word, if lowercase, should be capitalized, so this
change implements that.

Testing: This causes text-transform-capitalize-026.html to pass locally for me.
I think it's passing on CI, because CI is missing certain fonts that would otherwise
make this test fail.

@mrobinson
mrobinson requested a review from Loirooriol as a code owner July 31, 2026 12:12
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 31, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Aug 3, 2026
@TimvdLippe

Copy link
Copy Markdown
Contributor

but I believe that is because the test does not
wait on fonts.ready so it's comparing tofu to tofu. This should fix flakiness
with the test.

Can you fix the test in question so that regardless of this fix, it is no longer flaky?

@mrobinson

Copy link
Copy Markdown
Member Author

Can you fix the test in question so that regardless of this fix, it is no longer flaky?

Yes, I'm happy to fix this test in a followup.

@mrobinson
mrobinson added this pull request to the merge queue Aug 17, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 17, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 17, 2026
@SimonSapin

Copy link
Copy Markdown
Member

The failures are in text-transform tests. All that I looked at somehow have capitalize affect the first two letters of some words.

@mrobinson

Copy link
Copy Markdown
Member Author

Can you fix the test in question so that regardless of this fix, it is no longer flaky?

After pondering this a bit, I think this isn't a timing issue at all. Instead, I think that CI is missing the fonts necessary to show the difference in this test (it uses characters like ⓐⓑⓓ). I think this is an issue like #41044.

@mrobinson
mrobinson added this pull request to the merge queue Aug 24, 2026
@servo-highfive servo-highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 24, 2026
@servo-highfive servo-highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Aug 24, 2026
…hical letter units

The specification is pretty clear that the first lowercase typographical
letter unit of a word, if lowercase,  should be capitalized, so this
change implements that.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
@mrobinson
mrobinson force-pushed the text-transform-typographical branch from b1cc20e to 85183c5 Compare August 24, 2026 13:32
@servo-highfive servo-highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Aug 24, 2026
@mrobinson
mrobinson enabled auto-merge August 24, 2026 13:32
@mrobinson
mrobinson added this pull request to the merge queue Aug 24, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 24, 2026
Merged via the queue into servo:main with commit 1b33709 Aug 24, 2026
36 checks passed
@mrobinson
mrobinson deleted the text-transform-typographical branch August 24, 2026 15:01
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Aug 24, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…hical letter units (servo#46910)

The specification is pretty clear that the first lowercase typographical
letter unit of a word, if lowercase,  should be capitalized, so this
change implements that.

Testing: This causes text-transform-capitalize-026.html to pass locally
for me.
I think it's passing on CI, because CI is missing certain fonts that
would otherwise
make this test fail.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Psychpsyo pushed a commit to Psychpsyo/servo that referenced this pull request Oct 12, 2026
…hical letter units (servo#46910)

The specification is pretty clear that the first lowercase typographical
letter unit of a word, if lowercase,  should be capitalized, so this
change implements that.

Testing: This causes text-transform-capitalize-026.html to pass locally
for me.
I think it's passing on CI, because CI is missing certain fonts that
would otherwise
make this test fail.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants