Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
spec:css3-regions:regions-styling [2012/03/16 10:13] vhardyspec:css3-regions:regions-styling [2012/03/16 10:21] vhardy
Line 76: Line 76:
 === Open questions === === Open questions ===
  
-  * Can we chain pseudo-elements? For example, can we do the following:+  * Limitation: nested regions. 
 + 
 +Consider the following use case:
  
 <code> <code>
-window.getComputedStyle(elem, "::before::in-region(regionA)");+<div id="postit-A"></div> 
 +<div id="postit-B"></div> 
 + 
 +<div id="regionA"></div> 
 +<div id="regionB"></div> 
 +<div id="regionC"></div> 
 +<div id="regionD"></div> 
 + 
 +#postit-A, #postit-B { 
 + flow-from: block-flow; 
 +
 + 
 +#regionA, #regionB, #regionC, #regionD { 
 + flow-into: block-flow; 
 + flow-from: article; 
 +}
 </code> </code>
  
-According to the [[http://dev.w3.org/csswg/selectors3/#w3cselgrammar|Selectors Level 3]] specification:  +What if we want to have special styling for a '.title' that falls into regionB if regionB is in postit-A but not in postit-B? 
-    + 
-<file> +.title::in-region(regionB) selects the fragment of .title that falls into regionB. There is no way to say "… that falls  
-Note that pseudo-elements are restricted to one per selector and occur only in the last simple_selector_sequence+into the fragment of regionB that falls into postit-A. 
-</file>+
  
-which seems to prevent the combination of a '::before' pseudo-element selector with another '::in-region()' pseudo selector+Proposed resolutionaccept this limitation.
 
spec/css3-regions/regions-styling.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