mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #8447 - frewsxcv:htmltableelement-width-idl-attribute, r=eefriedman
Implement 'width' IDL attribute on <table> <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8447) <!-- Reviewable:end -->
This commit is contained in:
commit
81f094b129
4 changed files with 7 additions and 136 deletions
|
@ -115,6 +115,12 @@ impl HTMLTableElementMethods for HTMLTableElement {
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-table-bgcolor
|
||||
make_setter!(SetBgColor, "bgcolor");
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-table-width
|
||||
make_getter!(Width);
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-table-width
|
||||
make_dimension_setter!(SetWidth, "width");
|
||||
}
|
||||
|
||||
pub trait HTMLTableElementLayoutHelpers {
|
||||
|
|
|
@ -32,7 +32,7 @@ partial interface HTMLTableElement {
|
|||
// attribute DOMString frame;
|
||||
// attribute DOMString rules;
|
||||
// attribute DOMString summary;
|
||||
// attribute DOMString width;
|
||||
attribute DOMString width;
|
||||
|
||||
[TreatNullAs=EmptyString] attribute DOMString bgColor;
|
||||
//[TreatNullAs=EmptyString] attribute DOMString cellPadding;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue