mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 12:20:56 +00:00
Bug 1694741 - Part 7: Fix the reflection of percentage values for width/height attributes on source elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D153528
This commit is contained in:
parent
3897893bd1
commit
ad49920c1c
@ -89,12 +89,16 @@ class HTMLSourceElement final : public nsGenericHTMLElement {
|
||||
SetHTMLAttr(nsGkAtoms::media, aMedia, rv);
|
||||
}
|
||||
|
||||
uint32_t Width() const { return GetUnsignedIntAttr(nsGkAtoms::width, 0); }
|
||||
uint32_t Width() const {
|
||||
return GetDimensionAttrAsUnsignedInt(nsGkAtoms::width, 0);
|
||||
}
|
||||
void SetWidth(uint32_t aWidth, ErrorResult& aRv) {
|
||||
SetUnsignedIntAttr(nsGkAtoms::width, aWidth, 0, aRv);
|
||||
}
|
||||
|
||||
uint32_t Height() const { return GetUnsignedIntAttr(nsGkAtoms::height, 0); }
|
||||
uint32_t Height() const {
|
||||
return GetDimensionAttrAsUnsignedInt(nsGkAtoms::height, 0);
|
||||
}
|
||||
void SetHeight(uint32_t aHeight, ErrorResult& aRv) {
|
||||
SetUnsignedIntAttr(nsGkAtoms::height, aHeight, 0, aRv);
|
||||
}
|
||||
|
@ -1,4 +1,2 @@
|
||||
[picture-aspect-ratio.html]
|
||||
prefs: [dom.picture_source_dimension_attributes.enabled:true]
|
||||
[Percentages on source should be ignored for aspect-ratio but used for width/height.]
|
||||
expected: FAIL
|
||||
|
Loading…
x
Reference in New Issue
Block a user