Skip to content

Commit c65b958

Browse files
committed
[cssom] Fix getComputedStyle for display:contents
display:contents should act like display:none in getComputedStyle. Fixes #482.
1 parent 4389468 commit c65b958

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cssom/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,8 +2699,8 @@ as follows:
26992699
<dt>'padding'
27002700
<dt>'width'
27012701
<dd>If the property applies to the element or pseudo-element and the <a>resolved value</a> of the
2702-
'display' property is not ''display/none'', then the <a>resolved value</a> is the <a>used
2703-
value</a>. Otherwise the <a>resolved value</a> is the <a>computed value</a>.
2702+
'display' property is not ''display/none'' or ''display/contents'', then the <a>resolved value</a>
2703+
is the <a>used value</a>. Otherwise the <a>resolved value</a> is the <a>computed value</a>.
27042704

27052705
<dt>'bottom'
27062706
<dt>'left'
@@ -2711,9 +2711,9 @@ as follows:
27112711
<dt>'right'
27122712
<dt>'top'
27132713
<dd>If the property applies to a positioned element and the <a>resolved value</a> of the 'display'
2714-
property is not ''display/none'', and the property is not over-constrained, then the <a>resolved
2715-
value</a> is the <a>used value</a>. Otherwise the <a>resolved value</a> is the <a>computed
2716-
value</a>.
2714+
property is not ''display/none'' or ''display/contents'', and the property is not over-constrained,
2715+
then the <a>resolved value</a> is the <a>used value</a>. Otherwise the <a>resolved value</a> is the
2716+
<a>computed value</a>.
27172717

27182718
<dt>Any other property
27192719
<dd>The <a>resolved value</a> is the <a>computed value</a>.

0 commit comments

Comments
 (0)