Bug 191807

Summary: WebKit incorrectly capitalizes if there's an abspos between two inlines.
Product: WebKit Reporter: Emilio Cobos Álvarez (:emilio) <emilio>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: REOPENED ---    
Severity: Normal CC: ahmad.saleem792, bfulgham, mmaxfield, simon.fraser, zalan
Priority: P2 Keywords: WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase. none

Description Emilio Cobos Álvarez (:emilio) 2018-11-17 09:35:27 PST
Created attachment 355195 [details]
Testcase.

See the attachment.

The pseudo-element is out of flow, so it shouldn't affect capitalization. So expected rendering is "Homeblog" instead of "HomeBlog".

Furthermore, removing the pseudo-element dynamically doesn't fix the issue, and you need to force text-layout again somehow to see the correct rendering.
Comment 1 Brent Fulgham 2022-07-01 16:21:58 PDT
Chrome and Safari match behavior here (in 2022). Firefox produces the 'expected' beavhior.

Is there a WPT covering this behavior? Please REOPEN this bug if a Web Platform Test illustrates an issue.

For now, we should match Chrome behavior to avoid Website Compatibility issues.
Comment 2 Emilio Cobos Álvarez (:emilio) 2022-07-05 01:36:52 PDT
This is covered by https://wpt.fyi/results/css/css-text/text-transform/text-transform-capitalize-033.html