[Webkit-unassigned] [Bug 217330] New: Overriding CSS property resets related properties specified by shorthand

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 5 13:10:15 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=217330

            Bug ID: 217330
           Summary: Overriding  CSS property resets related properties
                    specified by shorthand
           Product: WebKit
           Version: Safari 14
          Hardware: Macintosh
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: opendarwin at lapcatsoftware.com

Created attachment 410541

  --> https://bugs.webkit.org/attachment.cgi?id=410541&action=review

HTML reproduction case

Overview:
If a CSS property is specified via shorthand (text-decoration: underline dashed red;), and you override that property (text-decoration-style: wavy !important;), then the other properties specified by the shorthand (text-decoration-color, text-decoration-line) are incorrectly reset to their initial values.


Steps to Reproduce:
1. Open the attached sample HTML file in Safari 14.

Expected Results:
Both anchors have red underline.

Actual Results:
Only the 2nd anchor has red underline.


Build:
Safari Version 14.0 (14610.1.28.1.9) on macOS Version 10.14.6 (18G6032)

Additional Information:
This bug does not occur in Firefox or Google Chrome.

Sample HTML:

<!DOCTYPE html>
<html lang="en">
<head>
        <meta charset="utf-8" />
        <title>CSS bug</title>
        <style>a { text-decoration-style: wavy !important; }</style>
</head>
<body>
<p><a href="https://webkit.org/" style="text-decoration: underline dashed red;">Click Me</a></p>
<p><a href="https://webkit.org/" style="text-decoration-line: underline; text-decoration-style: dashed; text-decoration-color: red;">Click Me</a></p>
</body>
</html>

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201005/6f3e924f/attachment-0001.htm>


More information about the webkit-unassigned mailing list