SlideShare a Scribd company logo
1 of 54
Magazine-like
layouts
for any screen with

  CSS Regions
This talk is about
   building     digital publications
        with    rich layouts
that adapt to   multiple screens
   by doing     less work
without breaking
     the content
I’m Mihnea Ovidenie
  mihnea@adobe.com
  @omihnea

  WebKit
  CSS Regions
  CSS Exclusions
  CSS Shaders
Traditional
Print Publishing
Paper

fixed dimensions
one orientation
low interactivity
Newspapers

content structure
multi-column
layout
Magazines

rich content
polished presentation
optimal column width
publishing is
    going digital
smartphones

               tablets

mobile
devices netbooks
text
              digital
video        content

                     search
       interaction
reading
experience

               social
immersive   integration
authoring for digital
         is difficult
Multiple devices
Today
  each page = one image

The good       The bad
  pixel       not handy
 perfect      no search
             no text reflow
Tomorrow?




HTML + CSS + JavaScript
magazine-like layout is
 difficult using
 the Web stack
Print          HTML

paginated   continuous flow
fit         browser scroll
            overflow
Hacks

mix semantic & layout markup
javascript for layout is slow
Future
Digital Publishing
Content once, layout
everywhere
standard CSS
browsers “magically” layout
CSS Regions

expressive Web
sophisticated layouts
collect & distribute content
named
            flows
key
concepts
           regions
Named flows

collect document content
multiple named flows
Into the
Great Wide Open




Our journey began long before we
actually took to the road. Routes and
schedules had to be figured and
sponsors found.


...On the lost art of the great
American road trip.
Into the
Great Wide Open




Our journey began long before we
actually took to the road. Routes and
schedules had to be figured and
sponsors found.


...On the lost art of the great
American road trip.
<h1>
Into the                                       Into the Great Wide Open
                                        </h1>
Great Wide Open
                                        <img src=“road.jpg” />


                                        <p>
                                               Our journey began long before
                                               we actually took to the road. Routes
                                        and schedules had to be figured and
Our journey began long before we        sponsors found.
actually took to the road. Routes and   </p>
schedules had to be figured and
sponsors found.                         <blockquote>
                                               ...On the lost art of the   great

...On the lost art of the great         American road trip

American road trip.                     </blockquote>
Regions

any size, any position
consume flow content
h1 {
                                         flow-into: title
                                        }

                                        p{
                                         flow-into: article
                                        }
flow-from: title
                                        blockquote {
                                         flow-into: quote
                                        }




                   flow-from: article


                                        flow-from: article


                    flow-from: quote
Demo
collect content
create layout


distribute content
in regions
adaptive layout
with CSS Regions
CSS Regions
     &
Media Queries
Media Queries
orientation: portrait | landscape

min-width: 320px

max-width: 1024px
Content once, layout
everywhere
do not break content
detect constraints
tailor regions layout
Demo
#region1, #region2, #region3 {
                                flow-from: article;
                                width: 30%;
                           }


                           @media screen and (orientation: portrait) {
<div id=“region1”></div>
<div id=“region2”></div>        #region1, #region2 {
<div id=“region3”></div>             width: 50%
                                }


                                #region3 {
                                     display: none
                                }
                           }
Advanced CSS Regions

javascript interaction
region styling
combine with CSS Exclusions
CSS Regions
       Evolution
Yesterday (2011)

Open standard      Browsers
 Adobe               WebKit
                   (prototype)
Today

Open standard   Browsers
 Adobe           WebKit
 Microsoft       Chrome
                 IE10
Tomorrow

Open standard   Browsers
 Adobe           WebKit
 Microsoft       Chrome
                 IE10
                 Firefox?
                 Safari?
                 Opera?
not a mechanism

 to create boxes
responsive
CSS           design
Regions
           declarative
modern       layout
browsers
html.adobe.com

mihnea@adobe.com   @omihnea
Attributions
    Icons from the Noun project


    Cell Phone            iPhone              iPad            Smartphone          Computer
     Andrew           The Noun project   The Noun project       George         The Noun project
Forrester, from The                                         Agpoon, from The
   Noun project                                               Noun project




       Browser                 User
   Yellow, from The       The Noun project
    Noun project

More Related Content

Similar to Magazine-like layouts for any screen with CSSRegions

Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Chris Love
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development LandscapeAmbert Ho
 
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Frédéric Harper
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignDebra Shapiro
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.GaziAhsan
 
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25Frédéric Harper
 
Responsive Web Design presentation at the Fort Wayne AdFed
Responsive Web Design presentation at the Fort Wayne AdFedResponsive Web Design presentation at the Fort Wayne AdFed
Responsive Web Design presentation at the Fort Wayne AdFedReusser Design, LLC
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
Designing future proof websites
Designing future proof websitesDesigning future proof websites
Designing future proof websitesFour Kitchens
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web DesignMike Wilcox
 
Responsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get StartedResponsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get Startedjennybchicken
 
Html5 Whats around the bend
Html5 Whats around the bendHtml5 Whats around the bend
Html5 Whats around the bendRaj Lal
 
Intro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS featuresIntro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS featuresAndreas Bovens
 
Responsive Web Design: How the mobile web has changed the way we think and work
Responsive Web Design:  How the mobile web has changed the way we think and workResponsive Web Design:  How the mobile web has changed the way we think and work
Responsive Web Design: How the mobile web has changed the way we think and workvq20
 
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignChris Love
 
Website trends 2012 presentation
Website trends 2012 presentationWebsite trends 2012 presentation
Website trends 2012 presentationFresh_Egg
 
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designSCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designFrédéric Harper
 

Similar to Magazine-like layouts for any screen with CSSRegions (20)

Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere Using Responsive Web Design To Make Your Web Work Everywhere
Using Responsive Web Design To Make Your Web Work Everywhere
 
The Mobile Development Landscape
The Mobile Development LandscapeThe Mobile Development Landscape
The Mobile Development Landscape
 
Design
DesignDesign
Design
 
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...Responsive Web Design, get the best out of your designs - JavaScript Open Day...
Responsive Web Design, get the best out of your designs - JavaScript Open Day...
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.Responsive Web Design tips and tricks.
Responsive Web Design tips and tricks.
 
Rwd slidedeck
Rwd slidedeckRwd slidedeck
Rwd slidedeck
 
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
Responsive Web Design, the secret sauce - MSDEVMTL - 2016-01-25
 
Responsive Web Design presentation at the Fort Wayne AdFed
Responsive Web Design presentation at the Fort Wayne AdFedResponsive Web Design presentation at the Fort Wayne AdFed
Responsive Web Design presentation at the Fort Wayne AdFed
 
Html5 more than just html5 v final
Html5  more than just html5 v finalHtml5  more than just html5 v final
Html5 more than just html5 v final
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
Designing future proof websites
Designing future proof websitesDesigning future proof websites
Designing future proof websites
 
Great Responsive-ability Web Design
Great Responsive-ability Web DesignGreat Responsive-ability Web Design
Great Responsive-ability Web Design
 
Responsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get StartedResponsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get Started
 
Html5 Whats around the bend
Html5 Whats around the bendHtml5 Whats around the bend
Html5 Whats around the bend
 
Intro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS featuresIntro to @viewport & other new Responsive Web Design CSS features
Intro to @viewport & other new Responsive Web Design CSS features
 
Responsive Web Design: How the mobile web has changed the way we think and work
Responsive Web Design:  How the mobile web has changed the way we think and workResponsive Web Design:  How the mobile web has changed the way we think and work
Responsive Web Design: How the mobile web has changed the way we think and work
 
There Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web DesignThere Is No Mobile: An Introduction To Responsive Web Design
There Is No Mobile: An Introduction To Responsive Web Design
 
Website trends 2012 presentation
Website trends 2012 presentationWebsite trends 2012 presentation
Website trends 2012 presentation
 
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your designSCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
SCREENS - 2012-09-28 - Responsive Web Design, get the best from your design
 

Recently uploaded

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 

Recently uploaded (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 

Magazine-like layouts for any screen with CSSRegions

Editor's Notes

  1. Good morning and welcome to my session “Magazine-like layout for any screen with CSSRegions”
  2. This talk will be about:CSSRegions, simple and elegant solution for complex layout for digital magazinesWorth counting if you create adigital newspaper on diverse screen with less effortToday I will talk about CSSRegions, a simple yet elegant solution that can be used to build complex layout for digital magazines using HTML. After this talk, you will understand why CSSRegions is a technology worth counting when you want to create a digital newspaper on several different screens with less effort and ..
  3. Without breaking the content.
  4. Mostly on WebKitA few words about myself. I joined Adobe since 2008 and since then I mostly worked on Webkit, the rendering engine behind Chrome and Safari. As you know, Adobe decided to play a first-hand role in HTML5 world, and during this effort I worked on first prototypes for some of the Adobe initiatives, like CSSRegions, CSSExclusions and CSSShaders.Since 2011, I focus on implementing the CSSRegions in WebKit.
  5. Before diving further into css regions concepts, it is helpful to step back for a few moments and take a look at some of the characteristics of traditional print models.
  6. Layout techniques constrained by paperConstant improvementNewspaper and magazinesIn print, the layout techniques are constrained by the medium, the paper, and its characteristics: fixed dimensions, one orientation and low interactivity. When talking about print, i am mainly thinking about newspapers and magazines.
  7. Once a day, low-quality paperArticles to be read quicklyMulticolumn as an effective layout for information (nu are sens de vorbitdespre 2,3 coloanepentrucasintsi 6).In the case of newspapers, typically published once a day on low-quality paper, the articles are designed to be read quickly. As an effective layout, we can identify the multicolumn layout.
  8. Beautiful content with outstanding images, crafted typographyOnce a weekComplex layouts and illustrations -&gt; quide reader attention on pageMultcolumn layout, each column 12-15 words -&gt; minimize eye strain and facilitate readingAs opposed to newspapers, magazines filled another segment of traditional publications: the segment of beautiful content enhanced with outstanding images. Magazines were published weekly on better quality paper using crafted typography. Complex layouts for structuring the information, supported by illustrations and graphs help guide the readers attention across the page.The multi-column layout is present here also. In addition to that, we can see content distributed across arbitrarily positioned block in order to help readers to quickly scan the content for relevant information.The optimal column width, usually 12-15 words per line, is used to minimize eye strain and facilitate reading.
  9. Rich contentmulticolumnHere is a typical magazine layout, exhibiting rich content, optimal column width
  10. Publishing from print to digitalMany reasonsThat was yesterday... but, as we can all testify, publishing is going from print to digital media. The reasons are plenty, but let&apos;s remember some of them.
  11. * Devices able to consume digital content (smartphones, tablets, netbooks)First:the sheer increase in number of mobile devices that are able to consume content. When talking about mobile devices, i am thinking of: smartphones, tables, netbooks, laptops.
  12. Digital is superior over printGreater interaction between user and contentContent with audio, video, graphicsUser search contentFollow links in article for more info about the subjectSecond, the digital content offers a far superior reader experience over print content. The level of interaction between the user and the content on a digital device cannot be matched by paper. In order to provide the user with a better understanding, content is augmented with audio, video and graphics. Users can search the digital content and follow links provided in the article to gain more context about the subject.
  13. Outstanding reading experienceSocial integrations makes article, experience sharing easierOn digital devices, the reader experience is outstanding, immersive and last but not the least, we have the social integration: facebook, twitter, google plus. One can share his experience with an article much easier than before.
  14. Digital is the future, authoring for digital is difficult.However, the authoring process for digital media is a difficult journey.
  15. Multiple devicesMultiple screensMultiple form factorsDifferent orientationOne of the main problems is that targeting multiple devices means that we should target multiple screens, multiple form factors and sometimes different orientations.
  16. PublishersAdapt print workflowsPixel perfect, looks niceThe process is difficult, labor intensive, hard to adapt to late minute changesImagesNo searchNo text reflow -&gt; 2 images for the same page on tablets with diff orientationIdeal layout modelAdapt to screensPreserve informationEnhance visual appeal from printTo recap, we are looking for a layout model that can adapt to different screen sizes, that is able to preserve the information continuity and enhance the visual appeal from print.A lot of the publishers today have workflows in which each magazine page is an image. For them, this was the natural extension to the existing print solution, an extension to their existing set of tools. While pixel perfect, this solution has some drawbacks. The process of creating a digital magazine using print-adapted workflows is labor intensive, error prone and hard to adapt to last minute changes.Images are not searchable.Because the text in an image does not reflow, one has to author the same image twice, for each orientation.There must be a better way..
  17. One solution: HTML * present on all mobile devices * HTML + CSS -&gt; flexible presentation model * text, images, audio, video, social availableWhy not use the HTML5 technologies, say combine HTML and CSS and JavaScript for this purpose? HTML is ubiquitous, present almost on all mobile devices. HTML coupled with CSS provides a flexible content and presentation model. And text, images, audio, video, social, are all present in HTML5 stack and ready to use.
  18. Hard to create something diff than 2-3 multicolumns.The sad truth is that complex, fancy layouts using more than 2-3 multicolumns are difficult right now.
  19. Hard to translate print into HTMLPrint: paginated, fit, designer has total control over appearanceHTML: not paginated, one flow. Render from top -&gt; bottom, scrollbars if content does not fit into viewport.CSS overflow: limited, scrollbars, hidden, overlapping content.It is hard to transpose the print concepts into HTML concepts. In print, content is paginated and fit in the page, the designer has total control over the appearance.In contrast, HTML content within a document is not paginated, but has typically only one flow - the default flow. It renders linearly from the top of the web page to the bottom, triggering vertical or horizontal scrolling if the browser cannot fit the content into the viewport.At the same time, CSS provides a limited set of options for dealing with content that overflows a container. A scrollbar can be shown on the container, the overflowing content can be hidden or it can be visible but it will overlap the neighboring content.
  20. To achieve complex layouts, hacks:Mix content with presentation style -&gt; difficult content reuseJs for layout is slow on devicesUsually, Web developers resort to all kind of hacks to create a complex layout, mixing the semantic content with the markup content. Thus making content reuse very difficult. And, JavaScript for layout is slow especially on mobile devices.
  21. How would we like a solution for the future digital publications look like?
  22. For me, a nice solution would be to create the article content once, to use some evolved, standard CSS rules and the browser would be smart enough to create an outstanding layout.
  23. CSSRegions appeared because Adobe wanted to help publishers.Something standard, based on open Web.CSSRegions: instead of allowing the browser to display the content the normal way, we would group this content, take it out of the document normal flow and show it in special areas of HTML document, the regions.Adobe is a company recognized for media excellence and we decided that we should help the publishers in their transition to digital landscape. Rather than inventing something proprietary, we decided to create something in the open, based on Web standards.The main idea for CSSRegions was: what if instead of allowing the browser to display the content the normal way, we would group this content, take it out of the document normal flow and show it in special areas of HTML document, the regions.
  24. 2 key concepts to understand: named flows and regions.CSSRegions proposal augments the functionality stack of CSS with concepts such as named flows and regions. These 2 are the key concepts to remember: named flows and regions. With CSSRegions, you group the information in named flows and then you distribute the collected information in disjoint rectangular containers, the regions, which you can position to achieve the desired layout.
  25. Named flow: a collection of HTML elements, extracted from document normal flow and identified by name. The elements in the named flow are not displayed part of the document flow.Any elementMultiple flows in documentAll children collectedAny number of named flows diff by nameSo what exactly is a named flow? It is a way of identifying a collection of HTML element, extracted from the document normal and displayed separately.Any HTML element can be part of a named flow. When an element is collected in a named flow, all its children are collected with him.A document can have any number of independent named flows, which can be distinguished by name.
  26. Here is a typical magazine layout displayed using CSSRegions. Here is the content of the article normal HTML.
  27. flow-into simple CSS propertySeparate article in named flows to be used laterNow comes the interesting part. Using a simple CSS syntax “flow-into”, I separate the article content in several named-flows to be used later, independent of how the document is laid out.At this moment, using only CSS instructions, I have separated the content.
  28. Collected content must be displayed, we need regionsRegion = css box, display named flow content instead of its own.Any size, any positionRegion chain solve overflowFrom 1 flow (keep it for late)Collecting the content only without displaying it would not be very useful, therefore let me show you the second concept: regions.A region is a CSS box that can display content from a named flow instead of its own content. Regions can have any size and can be positioned anywhere in the document.A region consumes content from a single named flow. If more then one region is attached to a named flow, those regions form a region chain. When content from a named flow does not fit into a region, the next region in chain takes the remaining content, therefore solving the overflow issue.
  29. Going back to the article
  30. We have 4 css boxes.Make them regions using flow-flow CSS propertyAssoc by name (between named flows and regions).Here we are using another pure CSS syntax, flow-from to create a region. As you can see, the association between the region and the flow is done by name, the regions are consuming content from the flow with the same name. You can also see that we have 2 regions for article named flow, the second region taking the content that overflow the first region.
  31. Browser in portrait mode, resize
  32. How are regions interacting with the named flow content?They act as pages.As you can imagine, the regions are acting as “pages” for the content in the named flow, they are paginating the content. With CSSRegions, the pagination concepts are brought to the CSS box level.
  33. Split responsibility between the web designed and the browserCollect content using flow-into propertyCreate regions layout using flow-from propertyBrowser distribute contentLet us recap how the layout with regions is done. The responsability is split between the web designed and the browser. In the first step, the user, using a pure CSS syntax, declares which content is grouped in which named flow. In the second step, the user creates a fancy layout using CSS Boxes -&gt; regions and associates the regions chains with the named flows.In the third step, browser flows the named flow content in the regions chains.
  34. * Can regions adapt to multiple screens?Now that we have gained some knowledge about how the regions are working, lets see how we can create a layout with CSSRegions that can adapt to different screen sizes and orientation.
  35. Because of that we thought about combining the CSSRegions with MediaQueries to create an even more powerful layout model.
  36. MQ is an incredibly robust mechanism for identifying not only the types of media (screen, print) but also for inspecting the physical characteristics of the devices and browsers that render render the content..Width &amp;&amp; height =&gt; viewport/broser windowDevice-width/device-heigth =&gt; device screen
  37. Extract content in named flowsUse MQ to decide how many regions should a media containContent remains collected, we just position the regions differently.First, we collect the content into the named flow, separating semantic markup from style markup. Next, we create the layout with regions but we use media queries to position the regions in such a way that would make sense for the screen size and device. We let then the browser to do the layout.Using the above steps, you can see that we are not breaking the content, only tailor the regions layout so that the information is kept meaningful for the user. We do not have to hide the content, the regions will accomodate the overflow properly.
  38. * Desktop, big displayHere is how the article looks like on a desktop, that has a big display surface.
  39. Now the same article on a tablet, less display surface. You can see the diff between regions layout.Here is how the first page of the article would look like on the tablet, with a display surface less than that of a desktop. Please note the difference between the regions layout for different orientation (done with mq).
  40. Second pageSecond page of the article on a tablet, again based on combination between regions and mq. The content, collected in named flows, was not touched.
  41. Here is a possible layout of 3 regions combined with media queries. (for screen, orientation: portrait means height &gt; width, for instance when you resize the window).
  42. I would like to mention 3 advanced CSSRegions topics. Present first the CSSOM, fully scriptable object model, you can interact with the named flows, regions, we have events triggering on layout.And for the JS enthusiasts, we have a very powerful CSS Object Model that allows you to customize the regions layout even further. In fact, we are offering a fully scriptable model for CSSRegions, including named flow and regions objects and layout events.One is region styling and it allows the designer to style the content rendered into a certain region. For instance, you can make the text in each region of the region chain have a different color.
  43. 2 regions, 1 named flow. Depending on the region, the background of the content has a different color. A few properties can be styled: paint properties and layout properties. At this moment, only font-color and background-color.
  44. A few words about the evolution of CSSRegions.
  45. CSSRegions is currently a work in progress and you can use WebKit nightly builds, Chrome and IE10 to play with it.
  46. * Not a way to create css boxes, they must existI would also like to emphasize that CSSRegions do not define a mechanism to create or position CSS boxes. Regions are boxes in which the content from named flows is displayed. You can use other modern layout techniques - multicolumn, flexbox to position the region boxes and then let the browser display the content in those boxes.
  47. Only pure CSS syntaxMix and match with mq, responsive designYou can see them in modern browsersWhat I would like you to remember about CSSRegions.First, they can be used to create rich layouts on the Web using standard CSS, this means declarative layout. CSSRegions does not define a mechanism to create HTML boxes, the boxes(regions) must already exist in the page. Also, CSSRegions concept match and mix perfectly with MQ, they can be used to create a responsive design. Last, but not the least, CSSRegions assume the existence of modern browsers, that are helping the Web developers and Web designers even more.Responsive design, declarative layout, modern browsers. This is the future of layout on the Web, you should try it. We believe in it.