Constraint cascading style sheets for the Web
Constraint cascading style sheets for the Web
复制标题
Web 的约束级联样式表
DOI:
10.1145/320719.322588
复制
发表时间:
1999
期刊:
影响因子:
--
通讯作者:
Peter James Stuckey
中科院分区:
文献类型:
--
作者:
Greg J. Badros;A. Borning;K. Marriott;Peter James Stuckey
Cascading Style Sheets have been introduced by the W3C as a mechanism for controlling the appearance of HTML documents. In this paper, we demonstrate how constraints provide a powerful unifying formalism for declaratively understanding and specifying style sheets for web documents. With constraints we can naturally and declaratively specify complex behavior such as inheritance of properties and cascading of conflicting style rules. We give a detailed description of a constraint-based style sheet model, CCSS, which is compatible with virtually all of the CSS 2.0 specification. It allows more flexible specification of layout, and also allows the designer to provide multiple layouts that better meet the desires of the user and environmental restrictions. We also describe a prototype extension of the Amaya browser that demonstrates the feasibility of CCSS.