Closed Bug 1609730 Opened 6 years ago Closed 6 years ago

`text-underline-position:left` and `right` values should be ignored in vertical-sideways writing modes

Categories

(Core :: Layout: Text and Fonts, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(2 files)

Testcase:

data:text/html,<u style="writing-mode:sideways-rl; text-underline-position:right; text-underline-offset:2px">test

This incorrectly renders the underline on the right. According to the spec the left and right values are only applicable to vertical typographic modes. writing-mode:sideways-rl results in text with horizontal typographic mode, just rotated 90°; as such, the right value should be ignored and the underline should remain "under" the text.

(Note that this bug doesn't manifest if text-underline-offset is left at auto; it only appears when a non-auto offset is used.)

This was noticed while testing the patch in bug 1607308, but as it's somewhat distinct from the primary issue there, I'd like to fix this (and add a testcase) first, before landing the more extensive changes in that bug.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/21272 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/21649bdb1cc8 Don't apply text-underline-position:right to sideways text (rotated horizontal typographic mode). r=emilio https://hg.mozilla.org/integration/autoland/rev/72e73341902f Add some extra WPT text-underline-position reftests. r=emilio
Upstream PR merged by moz-wptsync-bot
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: