This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15186 - Is a mechanism to auto-generate regions necessary in order to support reusable style sheets?
Summary: Is a mechanism to auto-generate regions necessary in order to support reusabl...
Status: RESOLVED FIXED
Alias: None
Product: CSS
Classification: Unclassified
Component: Regions (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Vincent Hardy
QA Contact:
URL: http://lists.w3.org/Archives/Public/w...
Whiteboard: editorial
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 22:39 UTC by Vincent Hardy
Modified: 2012-11-05 20:32 UTC (History)
4 users (show)

See Also:


Attachments

Description Vincent Hardy 2011-12-14 22:39:40 UTC
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's used etc. I.e., it'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'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'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't think we can delay auto-generation until the next revision.
It's a fundamental feature that needs to be described now. If it
cannot easily be described, the model may be flawed.

I'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.
Comment 1 Rossen Atanassov 2012-02-07 09:13:40 UTC
Paris F2F - this should be addressed by the CSS Page Template module.
Comment 3 Alan Stearns 2012-11-05 20:32:21 UTC
CSSWG resolved to close:

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