[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/2187836.2187946acmotherconferencesArticle/Chapter ViewAbstractPublication PagesthewebconfConference Proceedingsconference-collections
research-article

On the analysis of cascading style sheets

Published: 16 April 2012 Publication History

Abstract

Developing and maintaining cascading style sheets (CSS) is an important issue to web developers as they suffer from the lack of rigorous methods. Most existing means rely on validators that check syntactic rules, and on runtime debuggers that check the behavior of a CSS style sheet on a particular document instance. However, the aim of most style sheets is to be applied to an entire set of documents, usually defined by some schema. To this end, a CSS style sheet is usually written w.r.t. a given schema. While usual debugging tools help reducing the number of bugs, they do not ultimately allow to prove properties over the whole set of documents to which the style sheet is intended to be applied. We propose a novel approach to fill this lack. We introduce ideas borrowed from the fields of logic and compile-time verification for the analysis of CSS style sheets. We present an original tool based on recent advances in tree logics. The tool is capable of statically detecting a wide range of errors (such as empty CSS selectors and semantically equivalent selectors), as well as proving properties related to sets of documents (such as coverage of styling information), in the presence or absence of schema information. This new tool can be used in addition to existing runtime debuggers to ensure a higher level of quality of CSS style sheets.

References

[1]
J. J. Barton and J. Odvarko. Dynamic and graphical web page breakpoints. In Proceedings of the 19th international conference on World wide web, WWW '10, pages 81--90, New York, NY, USA, 2010. ACM.
[2]
B. Bos, T. Çelik, I. Hickson, and H. W. Lie. Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification. W3C recommendation, World Wide Web Consortium, June 2011.
[3]
T. Çelik, E. J. Etemad, D. Glazman, I. Hickson, P. Linss, and J. Williams. Selectors level 3. W3C recommendation, World Wide Web Consortium, September 2011.
[4]
K. J. Eberlein, R. D. Anderson, and G. Joseph. Darwin information typing architecture (DITA) version 1.2. Oasis standard, OASIS, December 2010.
[5]
P. Genevès. Logics for XML. PhD thesis, Institut National Polytechnique de Grenoble, December 2006. http://www.pierresoft.com/pierre.geneves/phd.htm.
[6]
P. Genevès, N. Layaïda, and A. Schmitt. Efficient static analysis of XML paths and types. In PLDI '07: Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation, pages 342--351, 2007.
[7]
P. Genevès, N. Layaïda, and A. Schmitt. Efficient static analysis of XML paths and types (extended version). Research Report 6590, INRIA, July 2008.
[8]
M. Keller and M. Nussbaumer. Cascading style sheets: a novel approach towards productive styling with today's standards. In Proceedings of the 18th international conference on World wide web, WWW '09, pages 1161--1162, New York, NY, USA, 2009. ACM.
[9]
M. Keller and M. Nussbaumer. CSS code quality: A metric for abstractness. In Seventh International Conference on the Quality of Information and Communications Technology (QUATIC), pages 116--121, Oct. 2010.
[10]
H. W. Lie. Cascading style sheets. Phd thesis, Faculty of Mathematics and Natural Sciences, University of Oslo, 2005.
[11]
P. M. Marden and E. V. Munson. Today's style sheet standards: the great vision blinded. Computer, 32(11):123--125, nov 1999.
[12]
V. Quint and I. Vatton. Editing with style. In Proceedings of the 2007 ACM symposium on Document engineering, DocEng '07, pages 151--160, New York, NY, USA, 2007. ACM.
[13]
M. Serrano. HSS: a compiler for cascading style sheets. In T. Kutsia, W. Schreiner, and M. Fernández, editors, PPDP, pages 109--118. ACM, 2010.
[14]
L. M. N. Walsh. DocBook: The Definitive Guide. O'Reilly & Associates, 1999.
[15]
H. Werntges. A CSS for docbook, November 2011. http://www.cs.hs-rm.de/ werntges/proj/wysiwyg-dbk01.html.

Cited By

View all
  • (2024)Hypermedia Controls: Feral to FormalProceedings of the 35th ACM Conference on Hypertext and Social Media10.1145/3648188.3675127(52-64)Online publication date: 10-Sep-2024
  • (2024)Machine Learning‐Enabled Integrated Information Platform for Educational UniversitiesOptimized Computational Intelligence Driven Decision‐Making10.1002/9781394242566.ch2(29-47)Online publication date: 8-Jul-2024
  • (2023)A full end-to-end deep approach for detecting and classifying jaw movements from acoustic signals in grazing cattleEngineering Applications of Artificial Intelligence10.1016/j.engappai.2023.106016121:COnline publication date: 1-May-2023
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Other conferences
WWW '12: Proceedings of the 21st international conference on World Wide Web
April 2012
1078 pages
ISBN:9781450312295
DOI:10.1145/2187836
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Sponsors

  • Univ. de Lyon: Universite de Lyon

In-Cooperation

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 16 April 2012

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. CSS
  2. debugging
  3. style sheets
  4. web development

Qualifiers

  • Research-article

Conference

WWW 2012
Sponsor:
  • Univ. de Lyon
WWW 2012: 21st World Wide Web Conference 2012
April 16 - 20, 2012
Lyon, France

Acceptance Rates

Overall Acceptance Rate 1,899 of 8,196 submissions, 23%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)24
  • Downloads (Last 6 weeks)2
Reflects downloads up to 11 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Hypermedia Controls: Feral to FormalProceedings of the 35th ACM Conference on Hypertext and Social Media10.1145/3648188.3675127(52-64)Online publication date: 10-Sep-2024
  • (2024)Machine Learning‐Enabled Integrated Information Platform for Educational UniversitiesOptimized Computational Intelligence Driven Decision‐Making10.1002/9781394242566.ch2(29-47)Online publication date: 8-Jul-2024
  • (2023)A full end-to-end deep approach for detecting and classifying jaw movements from acoustic signals in grazing cattleEngineering Applications of Artificial Intelligence10.1016/j.engappai.2023.106016121:COnline publication date: 1-May-2023
  • (2021)On CSS Unsatisfiability Problem in the Presense of DTDsIEICE Transactions on Information and Systems10.1587/transinf.2021EDP7002E104.D:6(801-815)Online publication date: 1-Jun-2021
  • (2020)Development of Social Media User Interface Portal for Maintaining Students PortfolioInventive Communication and Computational Technologies10.1007/978-981-15-7345-3_65(757-764)Online publication date: 25-Sep-2020
  • (2019)Detecting unsatisfiable CSS rules in the presence of DTDsProceedings of the 17th ACM SIGPLAN International Symposium on Database Programming Languages10.1145/3315507.3330195(18-29)Online publication date: 23-Jun-2019
  • (2019)CSS Minification via Constraint SolvingACM Transactions on Programming Languages and Systems10.1145/331033741:2(1-76)Online publication date: 19-Jun-2019
  • (2018)PlyProceedings of the 31st Annual ACM Symposium on User Interface Software and Technology10.1145/3242587.3242660(991-1002)Online publication date: 11-Oct-2018
  • (2016)Harnessing the Potential of CSS: An Exhaustive Reference for Web StylingEngineering International10.18034/ei.v4i2.6824:2(95-110)Online publication date: 31-Dec-2016
  • (2016)Language design and implementation for the domain of coding conventionsProceedings of the 2016 ACM SIGPLAN International Conference on Software Language Engineering10.1145/2997364.2997386(90-104)Online publication date: 20-Oct-2016
  • Show More Cited By

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media