Bug 251201

Summary: text-emphasis marks should not be rendered if there is no emphasized character
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: TextAssignee: Vitor Roriz <vitor.roriz>
Status: RESOLVED FIXED    
Severity: Normal CC: mmaxfield, webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: 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

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.