<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15186</bug_id>
          
          <creation_ts>2011-12-14 22:39:40 +0000</creation_ts>
          <short_desc>Is a mechanism to auto-generate regions necessary in order to support reusable style sheets?</short_desc>
          <delta_ts>2012-11-05 20:32:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>Regions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-style/2011Dec/0251.html</bug_file_loc>
          <status_whiteboard>editorial</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vincent Hardy">vhardy</reporter>
          <assigned_to name="Vincent Hardy">vhardy</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>howcome</cc>
    
    <cc>ratan</cc>
    
    <cc>stearns</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61565</commentid>
    <comment_count>0</comment_count>
    <who name="Vincent Hardy">vhardy</who>
    <bug_when>2011-12-14 22:39:40 +0000</bug_when>
    <thetext>AUTO-GENERATION

It seems that the current regions model create a fixed set of regions.
If the content poured into the regions take up more space than the
fixed set of regions can hold, no additional regions will be generated
automatically. This is a side-effect of using structural elements as
regions.

This solution may work for one-off designs where the authoring tool
knows everything about the content, which font to use, which font size
that&apos;s used etc. I.e., it&apos;s not a good solution for a web with many
types of display devices and users with varying font-size preferences.

It has been suggested that, in order to generate more regions, a
script should be invoked. I don&apos;t think it is acceptable to rely on
scripting for a fairly basic function to work.

Are there other alternatives? I believe that the multicol module [3]
offers an alternative. Columns are generated as needed, and content
flows from one to the next -- just like for regions. If we added a way
toBin select and style individual columns, we could size and position
them. They could escape the rigid framework that multicol currently
provides, and fly like angels. Angelic columns. 

For example, to turn the first columnn of an article into something
special, we could write:

  article { columns: 14em; }
  article::column(1) { 
     position: absolute; 
     font-size: 1.2em;
     visibility: collapse; /* makes space available others to use */
     ...
  }

For now, this is just a strawman proposal. But it shows that it&apos;s
possible to have stylable regions that naturally combine
auto-generation.

An issue has been added to the latest WD which somewhat describes the
concern [4]:

  ISSUE: should we allow the following: a magazine articles with
  regions galore on the first page, and then it switches to simple
  multi-column layout from page 2 and onwards

The proposed solution to the issue is:

  May be an interesting feature, but should move to next revision of
  CSS regions for simplicity.

I don&apos;t think we can delay auto-generation until the next revision.
It&apos;s a fundamental feature that needs to be described now. If it
cannot easily be described, the model may be flawed.

I&apos;d like to reformulate the issue (or add this text in a new issue):

  ISSUE: A mechanism to auto-generate regions is necessary in order to
  support reusable style sheets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63817</commentid>
    <comment_count>1</comment_count>
    <who name="Rossen Atanassov">ratan</who>
    <bug_when>2012-02-07 09:13:40 +0000</bug_when>
    <thetext>Paris F2F - this should be addressed by the CSS Page Template module.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76348</commentid>
    <comment_count>2</comment_count>
    <who name="Alan Stearns">stearns</who>
    <bug_when>2012-10-16 00:27:58 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/www-style/2012Oct/0304.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77913</commentid>
    <comment_count>3</comment_count>
    <who name="Alan Stearns">stearns</who>
    <bug_when>2012-11-05 20:32:21 +0000</bug_when>
    <thetext>CSSWG resolved to close:

http://log.csswg.org/irc.w3.org/css/?date=2012-10-29</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>