This implements a general framework for legacy presentational attributes to the DOM and style calculation, so that adding more of them later will be straightforward. Source-Repo: https://github.com/servo/servo Source-Revision: 0aeecfc41d5f0c637960fcddf87cc2db3e5efeea
20 lines
663 B
Rust
20 lines
663 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
//! Legacy presentational attributes defined in the HTML5 specification: `<td width>`,
|
|
//! `<input size>`, and so forth.
|
|
|
|
/// Legacy presentational attributes that take a length as defined in HTML5 § 2.4.4.4.
|
|
pub enum LengthAttribute {
|
|
/// `<td width>`
|
|
WidthLengthAttribute,
|
|
}
|
|
|
|
/// Legacy presentational attributes that take an integer as defined in HTML5 § 2.4.4.2.
|
|
pub enum IntegerAttribute {
|
|
/// `<input size>`
|
|
SizeIntegerAttribute,
|
|
}
|
|
|