Skip to content

Commit 44e1510

Browse files
committed
[cssom] Include custom properties in getComputedStyle().
Closes #1316. #4947 for the ordering issue.
1 parent 2a88934 commit 44e1510

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cssom-1/Overview.bs

+6-1
Original file line numberDiff line numberDiff line change
@@ -2853,12 +2853,17 @@ steps:
28532853
set <var>decls</var> to a list of all longhand properties that are
28542854
<a lt="supported CSS property">supported CSS properties</a>, in lexicographical order,
28552855
with the value being the <a>resolved value</a> computed for <var>obj</var>
2856-
using the style rules associated with <var>doc</var>.
2856+
using the style rules associated with <var>doc</var>. Additionally, append to
2857+
<var>decls</var> all the <a>custom properties</a> whose <a>computed value</a>
2858+
for <var>obj</var> is not the <a>guaranteed-invalid value</a>.
28572859

28582860
Issue: There are UAs that handle shorthands, and all UAs handle shorthands
28592861
that used to be longhands like 'overflow', see
28602862
<a href="https://github.com/w3c/csswg-drafts/issues/2529">#2529</a>.
28612863

2864+
Issue: Order of custom properties is currently undefined, see
2865+
<a href="https://github.com/w3c/csswg-drafts/issues/4947">#4947</a>.
2866+
28622867
<li>
28632868
Return a live <a>CSS declaration block</a> with the following properties:
28642869
<dl>

0 commit comments

Comments
 (0)