Ply

Sarah Lim

Abstract

Despite the ease of inspecting HTML and CSS, web developers struggle to identify the code most responsible for particular stylistic effects, due to complex DOM structures and CSS property cascades. In this paper, we introduce Ply, a DOM inspection tool which augments the Chrome Developer Tools to help developers explore complex professional web designs. To compute source code relevance, we introduce a technique called visual regression pruning, which uses pixel-level screenshot comparison to help developers locate CSS responsible for a webpage's appearance. A user selects an element, and Ply computes the visual impact of each matched CSS property. If a property does not affect the webpage, Ply hides the property from the inspector. In multiple iterations of needfinding studies, developers located relevant code more quickly using Ply. In a case study with the Airbnb homepage, Ply displays an average of 49% fewer CSS properties per element, compared to the Chrome Developer Tools as a control.

Venue
CHI 2017
Volume
Proceedings of the 2017 CHI Conference Extended Abstracts on Human Factors in Computing Systems
DOI
10.1145/3027063.3048427
PDF
https://dl.acm.org/doi/pdf/10.1145/3027063.3048427
Anthology ID
2017.chi-ea.89

Cite

@inproceedings{lim-2017-ply,
    title = {{Ply}},
    author = {Sarah Lim},
    booktitle = {Proceedings of the 2017 CHI Conference Extended Abstracts on Human Factors in Computing Systems},
    isbn = {9781450346566},
    year = {2017},
    publisher = {Association for Computing Machinery},
    address = {New York, NY, USA},
    doi = {10.1145/3027063.3048427},
    url = {https://doi.org/10.1145/3027063.3048427},
    abstract = {Despite the ease of inspecting HTML and CSS, web developers struggle to identify the code most responsible for particular stylistic effects, due to complex DOM structures and CSS property cascades. In this paper, we introduce Ply, a DOM inspection tool which augments the Chrome Developer Tools to help developers explore complex professional web designs. To compute source code relevance, we introduce a technique called visual regression pruning, which uses pixel-level screenshot comparison to help developers locate CSS responsible for a webpage's appearance. A user selects an element, and Ply computes the visual impact of each matched CSS property. If a property does not affect the webpage, Ply hides the property from the inspector. In multiple iterations of needfinding studies, developers located relevant code more quickly using Ply. In a case study with the Airbnb homepage, Ply displays an average of 49\% fewer CSS properties per element, compared to the Chrome Developer Tools as a control.}
}