Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Reasoning with Style
 
conference paper

Reasoning with Style

Bosch, Martí
•
Geneves, Pierre
•
Layaida, Nabil
Qiang, Yang
•
Wooldridge, Michael
2015
Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence
International Joint Conference On Artificial Intelligence (IJCAI 2015)

The Cascading Style Sheets (CSS) language constitutes a key component of web applications. It offers a series of sophisticated features to stylize web pages. Its apparent simplicity and power are however counterbalanced by the difficulty of debugging and maintaining style sheets, tasks for which developers still lack appropriate tools. In particular, significant portions of CSS code become either useless or redundant, and tend to accumulate over time. The situation becomes even worse as more complex features are added to the CSS language (e.g. CSS3 powerful selectors). A direct consequence is a waste of CPU that is required to display web pages, as well as the significant amount of useless traffic at web scale. Style sheets are designed to operate on a set of documents (possibly generated). However, existing techniques consist in syntax validators, optimizers and runtime debuggers that operate in one particular document instance. As such, they do not provide guarantees concerning all web pages in CSS refactoring, such as preservation of the formatting. This is partly because they are essentially syntactic and do not take advantage of CSS semantics to detect redundancies. We propose a set of automated refactoring techniques aimed at removing redundant and inaccessible declarations and rules, without affecting the layout of any document to which the style sheet is applied. We implemented a prototype that has been extensively tested with popular web sites (such as Google Sites, CNN, Apple, etc.). We show that significant size reduction can be obtained while preserving the code readability and improving maintainability.

  • Details
  • Metrics
Type
conference paper
Author(s)
Bosch, Martí
Geneves, Pierre
Layaida, Nabil
Editors
Qiang, Yang
•
Wooldridge, Michael
Date Issued

2015

Publisher

AAAI Press / International Joint Conferences on Artificial Intelligence

Publisher place

Palo Alto, California, USA

Published in
Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence
ISBN of the book

978-1-57735-738-4

Start page

2227

End page

2233

Subjects

cascading sytle sheets

•

logical reasoning

•

tree logic

•

automated refactoring

URL

URL

http://www.aaai.org/ocs/index.php/IJCAI/IJCAI15/paper/view/10741
Editorial or Peer reviewed

REVIEWED

Written at

OTHER

EPFL units
IINFCOM  
Event nameEvent placeEvent date
International Joint Conference On Artificial Intelligence (IJCAI 2015)

Buenos Aires, Argentina

July 25-31, 2015

Available on Infoscience
December 7, 2016
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/131814
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés