[Webkit-unassigned] [Bug 237175] New: [css] text-decoration is not implemented as a shorthand of its longhands
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 24 19:39:03 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=237175
Bug ID: 237175
Summary: [css] text-decoration is not implemented as a
shorthand of its longhands
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: obrufau at igalia.com
Blocks: 236272
<!DOCTYPE html>
<div>I should have underline</div>
<script>
var element = document.querySelector("div");
element.style.all = "initial";
element.style.textDecoration = "underline";
</script>
The element should be underlined, but it's not!
The cause is that 'text-decoration' is not a shorthand of 'text-decoration-color', 'text-decoration-line', etc.
So when the 'all' shorthand expands, the longhands appear later.
When setting 'text-decoration: underline', it's just updated in place.
The longhands still have precedence appearing later, and they are still set to 'initial'.
Referenced Bugs:
https://bugs.webkit.org/show_bug.cgi?id=236272
[Bug 236272] [css] Can't revert low-priority properties like text-decoration
--
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/20220225/2589b590/attachment-0001.htm>
More information about the webkit-unassigned
mailing list