This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
spec:css3-regions:regions-styling [2012/03/16 10:13] – vhardy | spec:css3-regions:regions-styling [2014/12/09 15:48] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Region Styling: Proposed alternate syntax ==== | ==== Region Styling: Proposed alternate syntax ==== | ||
+ | |||
+ | PAGE OBSOLETE: in light of the discussion on www-style (see http:// | ||
+ | preference for sticking to the @region syntax. The getComputedStyle API can be provided differently, | ||
+ | Region interface (e.g., Region.getComputedStyle(elem)). | ||
== Problem Description == | == Problem Description == | ||
Line 75: | Line 79: | ||
=== Open questions === | === Open questions === | ||
- | + | | |
- | | + | |
- | + | ||
- | < | + | |
- | window.getComputedStyle(elem, | + | |
- | </ | + | |
According to the [[http:// | According to the [[http:// | ||
< | < | ||
- | Note that pseudo-elements are restricted to one per selector and occur only in the last simple_selector_sequence. | + | ... pseudo-elements are restricted to one per selector and occur only in the last simple_selector_sequence. |
</ | </ | ||
- | which seems to prevent | + | which prevents |
+ | In a situation like: | ||
+ | |||
+ | < | ||
+ | #myElement { | ||
+ | flow-into: article; | ||
+ | } | ||
+ | |||
+ | # | ||
+ | content: "The quick brown fox"; | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | There is no way to select the fragment of # | ||
+ | |||
+ | < | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | but that would require combining pseudo-elements, | ||
+ | |||
+ | Proposal: accept the limitation of Selector 3. If that gets lifted in Selector 4, authors will get more flexibility. | ||
+ | |||
+ | * Limitation: nested regions. | ||
+ | |||
+ | Consider the following use case: | ||
+ | |||
+ | < | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | |||
+ | <div id=" | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | <div id=" | ||
+ | |||
+ | #postit-A, #postit-B { | ||
+ | flow-from: block-flow; | ||
+ | } | ||
+ | |||
+ | #regionA, #regionB, #regionC, #regionD { | ||
+ | flow-into: block-flow; | ||
+ | flow-from: article; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | What if we want to have special styling for a ' | ||
+ | |||
+ | .title:: | ||
+ | into the fragment of regionB that falls into postit-A. | ||
+ | |||
+ | Proposed resolution: accept this limitation. |