w3c / w3c/csswg-drafts

[css-text-decor] Underline position for when decorating box is higher than regular position

Open
#5,002 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-text-decor-4 Needs Data
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Test:
https://jsbin.com/tewugik/edit?html,output

Gecko positions the underline at the decorating box, while Edge seems to take the lower of the decorating box and the default position of the node.

This difference, along with Blink/WebKit not supporting decorating box yet (crbug.com/1008951), is causing web compat issue for Mozilla.
https://bugzilla.mozilla.org/show_bug.cgi?id=1387206
The actual site: https://www.bbc.com/sport/formula1

Can we take Edge's behavior? When actual regressions are known at multiple sites, it'd be difficult for us to match the spec.

/cc @jfkthame

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 jsbin test and compare the underline behavior described for Gecko and Edge. Review the linked Chromium and Mozilla compatibility reports; the issue is done when the CSS Working Group resolves which behavior the specification should require and records that decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.