Top Banner
1 © 2013 SAMSUNG Electronics Co. Open Source Group – Silicon Valley Daniel Glazman, Web Technologies Lead Samsung Web Tech Talk 15-oct-2013 CSS 3, Style and beyond
29

CSS 3, Style and Beyond

Jan 27, 2015

Download

Technology

Daniel Glazman, W3C CSS Working Group Chair and Web Tech Lead from Samsung OSG, discusses how CSS 3 and stylesheets will affect web standards in the future.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: CSS 3, Style and Beyond

1 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Daniel Glazman, Web Technologies Lead

Samsung Web Tech Talk

15-oct-2013

CSS 3, Style and beyond

Page 2: CSS 3, Style and Beyond

2 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

A short history of CSS #1

Date Status

Before 1993 DSSSL, Fosi, P

1993-1995 Original CSS proposal byHåkon Lie and Bert Bos

1996 CSS 1, 16 pages

1998 CSS 2, 340 pages

2011 CSS 2.1, 487 pages

Since 1998 CSS 3…

XSL-FO, sole competitor, shutdown in march 2013

Page 3: CSS 3, Style and Beyond

3 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

A short history of CSS #2

Very little initial interest by browser

vendors

IE 3 implements partial support in 1996

IE 5 for Mac, first full implementation

of CSS 1 in march 2000

Full steam since 2000

Page 4: CSS 3, Style and Beyond

4 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

The CSS Working Group

2008 2013 %

# of Members 32 98 +206%

# of active Mem-bers

10 35 +250%

# of specifications 30 65 +116%

Page 5: CSS 3, Style and Beyond

5 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

The CSS ecosystem

EPUBMobile Web-based

OSes

Web-based apps

Slideshows

Docu-ments

Web sites

SVGPrinted books

and maga-zines

Page 6: CSS 3, Style and Beyond

6 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

CSS today #1Animations

Backgrounds and Borders

Basic Box Model

Basic User Interface (CSS3 UI)

Blending & Compositing

Box Alignment

CSS3 Tables

CSSOM Values

CSSOM View

Cascading & Inheritance

Color

Color Correction

Conditional Rules

Device Adaptation

Display

Exclusions

Filter Effects

Flexible Box Model

Fonts

Font Load Events

Fragmentation

Generated Content

Generated Content for Paged

Media

Grid Layout

Grid Positioning

Grid Template Layout

Hierarchies

Image Values and Replaced

Content

Image Values and Replaced

Content

Intrinsic & Extrinsic Sizing

Line Grid

Line Layout

Lists and Counters

Media Queries

Mobile Text Size Adjustment

Multi-column Layout

Namespaces

Object Model (CSSOM)

Overflow

Page Floats

Page Media

Pagination Templates

Positioned Layout

Presentation Levels

Pseudo-elements

Regions

Ruby

Selectors

Shapes

Shapes

Speech

Style Attributes

Syntax

Text

Text Decoration

Transforms

Transitions

Values and Units

Variables

Variables

Writing Modes

Page 7: CSS 3, Style and Beyond

7 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

CSS today #2Animations

Backgrounds and Borders

Basic Box Model

Basic User Interface (CSS3 UI)

Blending & Compositing

Box Alignment

CSS3 Tables

CSSOM Values

CSSOM View

Cascading & Inheritance

Color

Color Correction

Conditional Rules

Device Adaptation

Display

Exclusions

Filter Effects

Flexible Box Model

Fonts

Font Load Events

Fragmentation

Generated Content

Generated Content for Paged

Media

Grid Layout

Grid Positioning

Grid Template Layout

Hierarchies

Image Values and Replaced

Content

Image Values and Replaced

Content

Intrinsic & Extrinsic Sizing

Line Grid

Line Layout

Lists and Counters

Media Queries

Mobile Text Size Adjustment

Multi-column Layout

Namespaces

Object Model (CSSOM)

Overflow

Page Floats

Page Media

Pagination Templates

Positioned Layout

Presentation Levels

Pseudo-elements

Regions

Ruby

Selectors

Shapes

Shapes

Speech

Style Attributes

Syntax

Text

Text Decoration

Transforms

Transitions

Values and Units

Variables

Variables

Writing Modes

Page 8: CSS 3, Style and Beyond

8 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

CSS today #3

CSS now an important part of Web-

based projects

CSS starts bridging natively the gaps

formerly filled by JS toolkits

CSS reaching features that were

considered impossible or out of scope

10 years ago

CSS an important part of the user

browsing experience

Page 9: CSS 3, Style and Beyond

9 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

CSS Variables

#1 user request since 1998...

CSS is not a programming

language

Take the problem differently

Use the Cascade

Page 10: CSS 3, Style and Beyond

10 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How CSS Variables work

body { var-main-color: white;}

.foo { var-main-color: silver;}

p { background-color: var(main-color);}

Page 11: CSS 3, Style and Beyond

11 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Flexible Box Module

Distribute space

Resolve simply old problems

Important for Web-based apps’ UI

Already existed ages ago in Motif...

Page 12: CSS 3, Style and Beyond

12 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Flexbox works #1

Page 13: CSS 3, Style and Beyond

13 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Flexbox works #2

Page 14: CSS 3, Style and Beyond

14 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Regions

Being able to name a content flow

Associate it to a set of elements or

anonymous boxes, even if they are not

contiguous

Very important for Web sites and eBooks

because that’s a feature of print media

hitting the Web

Page 15: CSS 3, Style and Beyond

15 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Regions Work

Page 16: CSS 3, Style and Beyond

16 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Exclusions and Shapes

Make content flow around an image or

a shape

Make content flow into a shape...

These are old print media features

Page 17: CSS 3, Style and Beyond

17 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Exclusions work #1

#prose { position: relative; column-count: 2;} #exclusion { /* image 135x135 */ position: absolute; top: calc(50% - 67px); left: calc(50% - 67px); wrap-flow: both; shape-outside: url(motorbike.png);}

Page 18: CSS 3, Style and Beyond

18 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Exclusions work #2

Page 19: CSS 3, Style and Beyond

19 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Exclusions work #3

Page 20: CSS 3, Style and Beyond

20 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Grids

The whole Print Industry relies on Grids

Strong involvement from HP, Adobe and Microsoft

Page 21: CSS 3, Style and Beyond

21 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Grids work#grid { display: grid; grid-definition-columns: 150px "ligneV1" 1fr "ligneV2" 1fr "ligneV3" 150px; grid-definition-rows: 4em 4em;}

#item 1 { grid-column: "ligneV2" "ligneV3"; grid-row: 2;}

Page 22: CSS 3, Style and Beyond

22 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Blending & Compositing

Alpha-compositing

Blend-mode

GPU acceleration

Page 23: CSS 3, Style and Beyond

23 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

How Blending & Compositing work

body { background-image: linear-gradient(0deg, #404040, silver); }p { color: yellow; background-image: linear-gradient(0deg, red, blue); }

Page 24: CSS 3, Style and Beyond

24 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Filter Effects

Proposal by Adobe, Apple and Opera with

strong Adobe involvement

CSS and SVG, Shaders

Extremely powerful, game changing

specification

Page 25: CSS 3, Style and Beyond

25 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Fonts

Page 26: CSS 3, Style and Beyond

26 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Fonts

Page 27: CSS 3, Style and Beyond

27 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

One last thing…

CSS Preprocessors-SASS-LESS-…

Page 28: CSS 3, Style and Beyond

28 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

Conclusion

CSS still improving every day

CSS reaching new industries-eBooks-OSes, apps-Appliances

CSS is now inevitable

Page 29: CSS 3, Style and Beyond

Thank you.

29 © 2013 SAMSUNG Electronics Co.Open Source Group – Silicon Valley

[email protected]