Strike line (<s> and <del>, text-decoration-line: line-through) should not get affected by text-decoration-skip: ink |
|||||
Issue description
Chrome Version: 57
OS: macOS 11.12
What steps will reproduce the problem?
data:text/html;charset=utf8,<s style="font-size: 50px; text-decoration-skip: ink"><script>document.write(Array(30).join("ijk ijk ijk "))</script></s>
What is the expected result?
Strike across the text without skipping.
What happens instead?
It is skipping text regions which doesn't seem right.
Perhaps this should be considered with "text-decoration-skip: auto" or always? I think best result is what Safari currently does with "text-decoration-line: line-through underline" on the following case:
data:text/html;charset=utf8,<span style="font-size: 50px; text-decoration-skip: ink; -webkit-text-decoration-line: line-through underline; text-decoration-line: line-through underline;"><script>document.write(Array(30).join("ijk ijk ijk "))</script></span>
,
Dec 2 2016
,
Dec 6 2016
,
Dec 21 2016
,
Dec 22 2016
,
Dec 22 2016
,
Jan 16 2017
https://drafts.csswg.org/css-text-decor/#valdef-text-decoration-skip-ink This value only applies to overlines and underlines; line-throughs are unaffected. https://github.com/w3c/csswg-drafts/commit/6d37258d4696972886a18f2298488cf94800060a
,
Jan 18 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/9a91abd16665860a7ab53a307b8e87c5783fbc6c commit 9a91abd16665860a7ab53a307b8e87c5783fbc6c Author: drott <drott@chromium.org> Date: Wed Jan 18 13:16:53 2017 Do not apply ink-skipping to line-through text decoration Discussion resolved in WG issue tracker: https://github.com/w3c/csswg-drafts/issues/711 BUG= 670599 R=kojii CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2600453003 Cr-Commit-Position: refs/heads/master@{#444343} [modify] https://crrev.com/9a91abd16665860a7ab53a307b8e87c5783fbc6c/third_party/WebKit/LayoutTests/fast/css3-text/css3-text-decoration/text-decoration-skip-expected.png [modify] https://crrev.com/9a91abd16665860a7ab53a307b8e87c5783fbc6c/third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp
,
Jan 18 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by drott@chromium.org
, Dec 2 2016