Bug 213554 - Child text-decoration-thickness and text-underline-offset override parent decorating boxes' values
Summary: Child text-decoration-thickness and text-underline-offset override parent dec...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-06-24 05:44 PDT by Dominik Röttsches (drott)
Modified: 2023-10-31 08:14 PDT (History)
6 users (show)

See Also:


Attachments
Offset nesting test (2.09 KB, text/html)
2020-06-24 05:44 PDT, Dominik Röttsches (drott)
no flags Details
Thickness nesting test (2.17 KB, text/html)
2020-06-24 05:45 PDT, Dominik Röttsches (drott)
no flags Details
Offset nesting actual (79.87 KB, image/png)
2020-06-24 05:47 PDT, Dominik Röttsches (drott)
no flags Details
Offset nesting expected (90.43 KB, image/png)
2020-06-24 05:47 PDT, Dominik Röttsches (drott)
no flags Details
Thickness nesting actual (86.51 KB, image/png)
2020-06-24 05:47 PDT, Dominik Röttsches (drott)
no flags Details
Thickness nesting expected (80.37 KB, image/png)
2020-06-24 05:47 PDT, Dominik Röttsches (drott)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Röttsches (drott) 2020-06-24 05:44:55 PDT
Created attachment 402640 [details]
Offset nesting test

In Safari release, and Safari TP, the current child node's text-decoration-thickness and text-underline-offset always override all previously defined text-decoration-thickness and text-underline-offset properties of parent elements / decorating boxes.

While working on Chromium's text-decoration-thickness and text-underline-offset, I noticed these discrepancies when writing a WPT test. 

Example test cases attached and available at:
http://roettsch.es/thickness-nesting.html
http://roettsch.es/offset-nesting.html

Actual: WebKit paints offset underlines and thickness-defined underline all at the same offset / thickness. 
Expected: Decorations should be stacked and the individual thickness and offset properties should be adhered too.
Comment 1 Dominik Röttsches (drott) 2020-06-24 05:45:11 PDT
Created attachment 402642 [details]
Thickness nesting test
Comment 2 Dominik Röttsches (drott) 2020-06-24 05:47:13 PDT
Created attachment 402643 [details]
Offset nesting actual
Comment 3 Dominik Röttsches (drott) 2020-06-24 05:47:30 PDT
Created attachment 402644 [details]
Offset nesting expected
Comment 4 Dominik Röttsches (drott) 2020-06-24 05:47:44 PDT
Created attachment 402645 [details]
Thickness nesting actual
Comment 5 Dominik Röttsches (drott) 2020-06-24 05:47:56 PDT
Created attachment 402646 [details]
Thickness nesting expected
Comment 6 Dominik Röttsches (drott) 2020-06-24 05:48:52 PDT
Potentially related to issue 203528.
Comment 7 Radar WebKit Bug Importer 2020-06-24 09:39:22 PDT
<rdar://problem/64705955>