TitleModular verification of web page layout
Publication TypeJournal Article
Year of Publication2019
AuthorsPanchekha P, Ernst MD, Tatlock Z, Kamil S
JournalProceedings of the ACM on Programming Languages
Volume3
Pagination26
AbstractAutomated verification can ensure that a web page satisfies accessibility, usability, and design properties regardless of the end user's device, preferences, and assistive technologies. However, state-of-the-art verification tools for layout properties do not scale to large pages because they rely on whole-page analyses and must reason about the entire page using the complex semantics of the browser layout algorithm. \par This paper introduces and formalizes \emphmodular layout proofs. A modular layout proof splits a monolithic verification problem into smaller verification problems, one for each \emphcomponent of a web page. Each \emphcomponent specification can use rely/guarantee-style preconditions to make it verifiable independently of the rest of the page and enabling reuse across multiple pages. Modular layout proofs scale verification to pages an order of magnitude larger than those supported by previous approaches. \par We prototyped these techniques in a new proof assistant, Troika. In Troika, a proof author partitions a page into components and writes specifications for them. Troika then verifies the specifications, and uses those specifications to verify whole-page properties. Troika also enables the proof author to verify different component specifications with different verification tools, leveraging the strengths of each. In a case study, we use Troika to verify a large web page and demonstrate a speed-up of 13–1469$\times$ over existing tools, taking verification time from hours to seconds. We develop a systematic approach to writing Troika proofs and demonstrate it on 8 proofs of properties from prior work to show that modular layout proofs are short, easy to write, and provide benefits over existing tools.
NotesOOPSLA
Downloadshttps://cassius.uwplse.org/ Troika, VizAssert, and Cassius tools
Citation KeyPanchekhaDTK2019