Bug 251201 - text-emphasis marks should not be rendered if there is no emphasized character
Summary: text-emphasis marks should not be rendered if there is no emphasized character
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Vitor Roriz
URL: https://wpt.fyi/results/css/css-text-...
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2023-01-26 03:53 PST by Karl Dubost
Modified: 2023-04-14 17:51 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl Dubost 2023-01-26 03:53:39 PST
Interop-2023

See https://wpt.fyi/results/css/css-text-decor/text-emphasis-style-property-010Cf.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2023-webcompat

https://drafts.csswg.org/css-text-decor-3/#text-emphasis-style-property

The marks are drawn once for each typographic character unit. However, emphasis marks are not drawn for:

Word separators or other characters that belong to the Unicode separator classes (Z*). (But note that emphasis marks are drawn for a space that combines with any combining characters.)
Punctuation--specifically, any characters that belong to the Unicode P* general category and do not NFKD normalize [UAX15] to any of the following symbols:
#	U+0023	NUMBER SIGN
%	U+0025	PERCENT SIGN
‰	U+2030	PER MILLE SIGN
‱	U+2031	PER TEN THOUSAND SIGN
٪	U+066A	ARABIC PERCENT SIGN
؉	U+0609	ARABIC-INDIC PER MILLE SIGN
؊	U+060A	ARABIC-INDIC PER TEN THOUSAND SIGN
&	U+0026	AMPERSAND
⁊	U+204A	TIRONIAN SIGN ET
@	U+0040	COMMERCIAL AT
§	U+00A7	SECTION SIGN
¶	U+00B6	PILCROW SIGN
⁋	U+204B	REVERSED PILCROW SIGN
⁓	U+2053	SWUNG DASH
〽️	U+303D	PART ALTERNATION MARK
Characters belonging to the Unicode classes for control codes and unassigned characters (Cc, Cf, Cn).
Comment 1 Radar WebKit Bug Importer 2023-01-26 03:53:49 PST
<rdar://problem/104688963>
Comment 2 Vitor Roriz 2023-04-06 12:51:59 PDT
Pull request: https://github.com/WebKit/WebKit/pull/12471
Comment 3 EWS 2023-04-14 17:30:15 PDT
Committed 262997@main (3b04a522163d): <https://commits.webkit.org/262997@main>

Reviewed commits have been landed. Closing PR #12471 and removing active labels.