Skip to content

Commit 00c78bc

Browse files
emiliotabatkins
authored andcommitted
Fix #1548. (#2563)
* [cssom] Make elements outside of the flat tree or detached not expose styles. Fixes #1548 * [cssom] Let elements in non-rendered iframes not expose styles. Additional resolution in #1548. * fixup! [cssom] Make elements outside of the flat tree or detached not expose styles. * fixup! [cssom] Let elements in non-rendered iframes not expose styles.
1 parent 8aa6498 commit 00c78bc

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

cssom-1/Overview.bs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ urlPrefix: https://html.spec.whatwg.org/multipage/
3535
text: tree order
3636
text: document base url
3737
text: content-type metadata; url: #content-type
38+
urlPrefix: rendering.html
39+
type: dfn
40+
text: being rendered
3841
urlPrefix: browsers.html
3942
type: interface; text: WindowProxy
4043
type: dfn
@@ -2779,19 +2782,27 @@ steps:
27792782
versions. That is, both <code>:before</code> and <code>::before</code> should
27802783
match above.
27812784

2785+
<li>Let <var>decls</var> be an empty list of <a>CSS declarations</a>.
2786+
<li>If <var>elt</var> is <a>connected</a>, part of the <a>flat tree</a>,
2787+
and its <a>shadow-including root</a> has a <a>browsing context</a> which either
2788+
doesn't have a <a>browsing context container</a>, or whose
2789+
<a>browsing context container</a> is <a>being rendered</a>,
2790+
set <var>decls</var> to a list of all longhand properties that are
2791+
<a lt="supported CSS property">supported CSS properties</a>, in lexicographical order,
2792+
with the value being the <a>resolved value</a> computed for <var>obj</var>
2793+
using the style rules associated with <var>doc</var>.
2794+
2795+
Issue: There are UAs that handle shorthands, and all UAs handle shorthands
2796+
that used to be longhands like 'overflow', see
2797+
<a href="https://github.com/w3c/csswg-drafts/issues/2529">#2529</a>.
2798+
27822799
<li>
27832800
Return a live <a>CSS declaration block</a> with the following properties:
27842801
<dl>
27852802
<dt><a for="CSSStyleDeclaration">readonly flag</a>
27862803
<dd>Set.
27872804
<dt><a for="CSSStyleDeclaration">declarations</a>
2788-
<dd>All longhand properties that are <a lt="supported CSS property">supported CSS properties</a>, in lexicographical order, with the value being
2789-
the <a>resolved value</a> computed for <var>obj</var> using the style rules associated with <var>doc</var>.
2790-
2791-
Issue: There are UAs that handle shorthands, and all UAs handle shorthands
2792-
that used to be longhands like 'overflow', see
2793-
<a href="https://github.com/w3c/csswg-drafts/issues/2529">#2529</a>.
2794-
2805+
<dd><var>decls</var>.
27952806
<dt><a for="CSSStyleDeclaration">parent CSS rule</a>
27962807
<dd>Null.
27972808
<dt><a for="CSSStyleDeclaration">owner node</a>

0 commit comments

Comments
 (0)