Bug 244813 - text decoration needs to skip spaces at start/end of lines
Summary: text decoration needs to skip spaces at start/end of lines
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-05 08:32 PDT by Florian Rivoal
Modified: 2022-09-12 08:33 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Rivoal 2022-09-05 08:32:38 PDT
Based on https://drafts.csswg.org/css-text-decor-4/#text-decoration-skip-spaces-property (for the explicit use of `text-decoration-skip-spaces: start end`) or on https://drafts.csswg.org/css-text-decor-3/#line-decoration (for the default behavior when no particular property tries to adjust the skipping), spaces at the start and end of the line are supposed to be skipped by text decorations such as underlines.

Safari doesn't do that, as can be seen in https://wpt.fyi/results/css/css-text-decor?sha=249e1eb8e6&label=master&max-count=1&view=subtest&q=css%2Fcss-text-decor%2Ftext-decoration-skip-spaces

The CSSWG has been asked as whether this was a case of the spec being expected to align with implementations, or implementations with the spec, and does seem to expect spec compliance (see https://github.com/w3c/csswg-drafts/issues/4653)
Comment 1 Radar WebKit Bug Importer 2022-09-12 08:33:16 PDT
<rdar://problem/99822969>