Automated Refactoring for Size Reduction of CSS Style Sheets

Martí Bosch 1 Pierre Genevès 1 Nabil Layaïda 1
1 TYREX - Types and Reasoning for the Web
Inria Grenoble - Rhône-Alpes, LIG - Laboratoire d'Informatique de Grenoble
Abstract : Cascading Style Sheets (CSS) is a standard language for stylizing and formatting web documents. Its role in web user experience becomes increasingly important. However, CSS files tend to be designed from a result-driven point of view, without much attention devoted to the CSS file struc-ture as long as it produces the desired results. Furthermore, the rendering intended in the browser is often checked and debugged with a document instance. Style sheets normally apply to a set of documents, therefore modifications added while focusing on a particular instance might affect other documents of the set. We present a first prototype of static CSS semantical an-alyzer and optimizer that is capable of automatically de-tecting and removing redundant property declarations and rules. We build on earlier work on tree logics to locate re-dundancies due to the semantics of selectors and properties. Existing purely syntactic CSS optimizers might be used in conjunction with our tool, for performing complementary (and orthogonal) size reduction, toward the common goal of providing smaller and cleaner CSS files.
Type de document :
Communication dans un congrès
Proceedings of the 2014 ACM symposium on Document engineering, Sep 2014, Fort Collins, Denver, United States. <http://www.doceng2014.org/>. <10.1145/2644866.2644885>
Domaine :
Liste complète des métadonnées


https://hal.inria.fr/hal-01081876
Contributeur : Tyrex Equipe <>
Soumis le : mardi 13 janvier 2015 - 15:21:21
Dernière modification le : mercredi 14 décembre 2016 - 01:08:45
Document(s) archivé(s) le : samedi 15 avril 2017 - 16:14:57

Fichier

doc085s-bosch.pdf
Publication financée par une institution

Identifiants

Collections

Citation

Martí Bosch, Pierre Genevès, Nabil Layaïda. Automated Refactoring for Size Reduction of CSS Style Sheets. Proceedings of the 2014 ACM symposium on Document engineering, Sep 2014, Fort Collins, Denver, United States. <http://www.doceng2014.org/>. <10.1145/2644866.2644885>. <hal-01081876v2>

Partager

Métriques

Consultations de
la notice

348

Téléchargements du document

177