W3C home > Mailing lists > Public > public-html@w3.org > January 2008

<style scoped> and semi-transparent content models

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 10 Jan 2008 16:45:26 +0200
Message-Id: <7BE347E4-5BDE-4E87-A630-40FBFCAF8165@iki.fi>
To: HTMLWG WG <public-html@w3.org>

The permitted contexts of <style scoped> and the content models of  
<object>, <video> and <audio> seem to be in conflict or at least  
subject to interpretation.

<style scoped> contexts:
"If the scoped attribute is present: where prose content is expected,  
but before any sibling elements other than style elements and before  
any text nodes other than inter-element whitespace."

<video> content model:
"If the element does not have a src attribute: one or more source  
elements, then, transparent."

<object> content model:
"Zero or more param elements, then, transparent."

So what are the conformance requirements for the relative order of  
<source> (or <param>) and <style scoped>? Or should "transparent" be  
read to imply that <style scoped> isn't allowed there? (If that's the  
case, there are <ins>/<del> repercussions, too. Sigh.)

(FWIW, requiring <source>s or <param>s to come before <style scoped>  
makes the simplest RELAX NG schema, but I know that's not the main  
consideration here.)

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Thursday, 10 January 2008 14:45:44 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:52 UTC