Coder Social home page Coder Social logo

jround's Introduction

jRound

jRound is a JavaScript polyfill to support CSS Extension for a round display that extends existing CSS features in order to help web authors to build a web page suitable for a round display. To understand proposed features, refer to the specification and see the demo page. jRound supports the current release of Chrome and may not work in other browsers.

Background

Everything on the web is a rectangle. For example, the window content area in a web browser is a rectangle. Each HTML element follows the W3C box model and thus is also a rectangle. New devices with a round display are now emerging. The current web standards lack some features to support the devices as follows:

  1. Lack of the capability to detect a round display
  2. Lack of layout mechanisms suitable for a round display

In order to facilitate the use of the web on a round display, we need to rethink existing CSS features. Current user agents are not capable of detecting the shape of a display so that authors cannot apply a different layout for a round display. To resolve the issue, we propose to add the device-radius media feature to Media Queries. The feature informs the web page of the property regarding the shape of the display.

To apply the shape of a display to content area, we propose to extend the shape-inside property of CSS Shapes. We also propose to add the border-boundary property to CSS Borders and introduce polar positioning for a better web design suitable for a round display.

Related CSS Specifications

LICENSE

  • Licensed under the Apache License, Version 2.0
  • Copyright 2015 LG Electronics Inc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.