Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
spec:css3-regions:sequestering-regions [2012/11/15 17:47] astearnsspec:css3-regions:sequestering-regions [2012/11/16 12:35] astearns
Line 1: Line 1:
-Using HTML elements to produce the boxes for a region chain is a point of contention. The point made against the current version of the spec is that markup purely for presentational purposes should be avoided when possible. At TPAC 2012, [[http://lists.w3.org/Archives/Public/www-style/2012Nov/0260.html|Bert mentioned]] that using an external file to define the presentational boxes would be OK.+Using HTML elements to produce the boxes for a region chain is a point of contention. The point made against the current version of the spec is that combining content and presentational code should be avoided when possible. At TPAC 2012, [[http://lists.w3.org/Archives/Public/www-style/2012Nov/0260.html|Bert mentioned]] that using an external file to define the presentational boxes would be OK.
  
 One way to use an external file for presentational purposes is being defined by the [[http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html|Web Components]] effort, so it may be a useful experiment to see how we could define regions using custom elements and/or decorators from Web Components One way to use an external file for presentational purposes is being defined by the [[http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html|Web Components]] effort, so it may be a useful experiment to see how we could define regions using custom elements and/or decorators from Web Components
Line 33: Line 33:
 </code> </code>
  
-Using custom elements, you could put the presentational elements in a separate HTML file:+Using custom elements, you could put the presentational elements in a separate HTML file. I have extended the img element here, but you could instead extend the body element.
  
 <code html content.html> <code html content.html>
Line 71: Line 71:
 </code> </code>
  
-Or you could use decorators:+Or you could use decorators. Again, I chose to add a class to the img element, but you could decorate the body element if that's your preference.
  
 <code html contents.html> <code html contents.html>
-<link rel="decorators" href="region-layout.html"> 
 <style> <style>
   article {   article {
Line 89: Line 88:
  
   .bar {   .bar {
-    decorator: url(#region-layout);+    decorator: url(region-layout.html/#region-layout);
   }   }
 </style> </style>
 
spec/css3-regions/sequestering-regions.txt · Last modified: 2014/12/09 15:48 by 127.0.0.1
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki