Closed Bug 282543 Opened 20 years ago Closed 20 years ago

binding stylesheets aren't applied to explicit children of binding

Categories

(Core :: XBL, enhancement)

x86
Windows 2000
enhancement
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: surkov, Assigned: hyatt)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a6) Gecko/20050111

//binding.xml
<binding id="bnd1">
<resources>
  <stylesheet src="binding.css"/>
</resources>
<content>
	<xul:description value="green text"/>
	<children includes="description"/>
</content>
</binding>

//binding.css
description{ color: greed; }

//test.xul
<bnd1>
<description value="no green text"/>
</bnd1>

Text with label 'green text' will be green. Text with label 'no green text' will
not be green.

Reproducible: Always

Steps to Reproduce:
I think binding stylesheets is loaded before explicit children is inserted into
binding element.
This is the "right" behavior.  See
http://www.w3.org/TR/xbl/#anonymous-css-binding-sheets
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.