w3c / w3c/editing

Match browser behaviors of execCommand(bold)

Open
#243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

execCommand
Dominant language
HTML
Stars
202
Forks
43
PR merge metrics
No merged PRs in 30d

Description

https://w3c.github.io/editing/ActiveDocuments/execCommand.html#the-bold-command

Currently Blink thinks font-weight >= 600 is bold while Gecko thinks >= 500 is bold enough, as the spec currently describes.

The spec somehow decided to follow Blink behavior, but do we really think Blink one is the best here? Does Gecko behavior actually look better? Should Gecko follow Blink or vise versa?

cc @masayuki-nakano

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1515267

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked execCommand specification section and compare its bold threshold with the Blink and Gecko behaviors described in the issue. Review the linked Bugzilla discussion and determine which behavior should be normative; done means a documented decision and any resulting specification update, if the task force agrees.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.