Bug 191807 - WebKit incorrectly capitalizes if there's an abspos between two inlines.
Summary: WebKit incorrectly capitalizes if there's an abspos between two inlines.
Status: REOPENED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: WPTImpact
Depends on:
Blocks:
 
Reported: 2018-11-17 09:35 PST by Emilio Cobos Álvarez (:emilio)
Modified: 2023-01-03 18:09 PST (History)
5 users (show)

See Also:


Attachments
Testcase. (190 bytes, text/html)
2018-11-17 09:35 PST, Emilio Cobos Álvarez (:emilio)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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