Skip to content

Commit

Permalink
[Bug 27637] [Shadow DOM] Define the CSS inheritance in terms of Compo…
Browse files Browse the repository at this point in the history
…sed Tree.
  • Loading branch information
hayatoito committed Dec 18, 2014
1 parent 1b22f3c commit 1709f12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions spec/shadow/autolink-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var autolinkConfig = {
'nodeType': '#dom-node-nodetype',
'ownerDocument': '#dom-node-ownerdocument',
'parent': '#concept-tree-parent',
'participate': '#concept-tree-participate',
'participates': '#concept-tree-participate',
'preceding': '#concept-tree-preceding',
'range': '#range',
Expand Down Expand Up @@ -118,6 +119,9 @@ var autolinkConfig = {

'http://www.w3.org/TR/CSS21/': {
'CSS rules': 'syndata.html#rule-sets',
'inheritance': 'cascade.html#inheritance',
'box': 'box.html',
'formating structure': 'intro.html#formatting-structure',
'text-decoration': 'text.html#lining-striking-props'
},

Expand Down
10 changes: 7 additions & 3 deletions spec/shadow/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,13 @@ <h3>Composed trees</h3>
<figcaption>A composed tree</figcaption>
</figure>

<p>In <dfn>rendering</dfn> a <a>document tree</a>, or presenting it visually, the <a>composed tree</a> <strong>must</strong> be used instead of the <a>document tree</a>.</p>

<p>The <a>composed tree</a> <strong>must</strong> be updated before the <a>rendering</a> occurs.</p>
<p>
If an element doesn't <a>participate</a> in a <a>composed tree</a> whose <a>root</a> node is a document, the element <strong>must</strong> not appear in the <a>formating structure</a> [[!CSS21]] nor create any CSS <a>box</a>.
This behavior <strong>must</strong> not be overridden by setting the 'display' property.
</p>
<p>
In resolving CSS <a>inheritance</a>, an element <strong>must</strong> inherit from the parent node in the <a>composed tree</a>, if applicable.
</p>
</section>

</section>
Expand Down

0 comments on commit 1709f12

Please sign in to comment.