Closed Bug 1686512 Opened 5 years ago Closed 4 years ago

[css-pseudo] ::first-letter should include currency

Categories

(Core :: Layout, defect)

defect

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: jfkthame)

References

Details

Attachments

(2 files)

A resolution was made for csswg-drafts/#5099.

[css-pseudo] ::first-letter should include currency

  • RESOLVED: include symbols when looking for first-letter

Discussion.

Testcase: https://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cstyle%3E%0Ap%20%7B%20display%3A%20inline-block%3B%20%7D%0Ap%3A%3Afirst-letter%20%7B%20color%3Aorange%3B%20%7D%0A%3C%2Fstyle%3E%0A%3Cp%3EThis%20%3Cp%3E7this%20%3Cp%3E%24this%20%3Cp%3E%C2%A9this%20%3Cp%3E%E2%86%BBthis%20%3Cp%3E%E2%93%A3this%20%3Cp%3E%E2%9A%A1this%0A

<!DOCTYPE html>
<style>
p { display: inline-block; }
p::first-letter { color:orange; }
</style>
<p>This <p>7this <p>$this <p>©this <p>↻this <p>ⓣthis <p>⚡this

The resolution would require "$" (at least) to be styled with the first-letter styling in that example.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d0d6ef2f698 Accept characters with Symbol category as possible ::first-letter, in addition to alphanumerics. r=emilio
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61363611f751 Revise existing reftest for the changed treatment of symbols; also add a WPT reftest for this behavior. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/28303 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1722763
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: