[Webkit-unassigned] [Bug 170708] New: getComputedStyle() can be incorrect when using CSS Custom Properties
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 10 16:41:11 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=170708
Bug ID: 170708
Summary: getComputedStyle() can be incorrect when using CSS
Custom Properties
Product: WebKit
Version: Safari 10
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dfreedm at google.com
getComputedStyle of a node can be incorrect when that node uses CSS Custom Properties and an ancestor node which sets CSS Custom Properties is modified.
Example: http://jsbin.com/ginegud/12/edit?html,console,output
This example modifies the values of `--border` based on the class selector `.switch`, synchronously calls `getComputedStyle()`, and prints the value of `border-top-width` in the cases of
1) before adding the class `switch`
2) synchronously after adding the class `switch`
3) synchronously removing the class `switch`
Expected:
2px
10px
2px
Actual:
2px
2px
2px
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170410/1ec5e5b0/attachment.html>
More information about the webkit-unassigned
mailing list