servo/components/script/dom/webidls/HTMLTableCellElement.webidl
Corey Farwell ba659cb99c Implement non-zero dimension attribute parsing
Fixes #8445

The only attributes I found that we have implemented that uses non-zero
dimenion attributes:

* `width` for `<td>` and `<th>` (table cells)
* `width` for `<table>`

I updated these implementations to use the new non-zero dimension
attribute parsing and added associated regression tests.
2015-12-24 13:20:43 -08:00

30 lines
1.1 KiB
Text

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
// https://html.spec.whatwg.org/multipage/#htmltablecellelement
[Abstract]
interface HTMLTableCellElement : HTMLElement {
attribute unsigned long colSpan;
// attribute unsigned long rowSpan;
//[PutForwards=value] readonly attribute DOMSettableTokenList headers;
readonly attribute long cellIndex;
// also has obsolete members
};
// https://html.spec.whatwg.org/multipage/#HTMLTableCellElement-partial
partial interface HTMLTableCellElement {
// attribute DOMString align;
// attribute DOMString axis;
// attribute DOMString height;
attribute DOMString width;
// attribute DOMString ch;
// attribute DOMString chOff;
// attribute boolean noWrap;
// attribute DOMString vAlign;
[TreatNullAs=EmptyString] attribute DOMString bgColor;
};