Skip to content

Commit 0eb0aa1

Browse files
authored
Add note for textformat underline styles (#118)
Adds a note in `TextFormatUpdateEvent` to mention that UAs can choose to alter the styles before dispatching `textformatupdate` event to combat fingerprinting. This is not a normative change of behavior, but rather a clarification of flexibility available to UAs Closes #8
1 parent d98f84e commit 0eb0aa1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

index.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,19 @@ <h4>EditContext events</h4>
299299
the changes back to the page's view so the user can see what they are typing.
300300
</li>
301301
<li>
302-
The user agent must fire {{TextFormatUpdateEvent}} when the [=Text Input Service=]
303-
indicates that certain formats should be applied to the text being composed. When
304-
the author receives this event, they must render the formatting change back to
305-
the page's view to aid the user with their IME composition.</li>
302+
<p>
303+
The user agent must fire {{TextFormatUpdateEvent}} when the [=Text Input Service=]
304+
indicates that certain formats should be applied to the text being composed. When
305+
the author receives this event, they must render the formatting change back to
306+
the page's view to aid the user with their IME composition.
307+
</p>
308+
<p class="note">
309+
User agents can adjust the {{UnderlineStyle}} or {{UnderlineThickness}} before
310+
dispatching the {{TextFormatUpdateEvent}} to mitigate fingerprinting risks. This may
311+
be especially relevant when input methods with distinctive styling characteristics
312+
are used.
313+
</p>
314+
</li>
306315
<li>
307316
<p>
308317
The user agent must fire {{CharacterBoundsUpdateEvent}} when the

0 commit comments

Comments
 (0)