diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-12-13 19:09:06 -0800 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-03-03 17:54:12 +0100 |
commit | 09c53f461dadf0c1f2896754c329ee6ad3e9359e (patch) | |
tree | e7ff2e7cd5e29034ad3914ddeb231447ff883e1a /components/script/dom | |
parent | 6fcc02e92f4c519239a834dc37a2965a4993322a (diff) | |
download | servo-09c53f461dadf0c1f2896754c329ee6ad3e9359e.tar.gz servo-09c53f461dadf0c1f2896754c329ee6ad3e9359e.zip |
layout: Implement `image-rendering` per CSS-IMAGES-3 § 5.3 and
`background-size` per CSS-BACKGROUNDS § 3.9.
Nearest neighbor interpolation is used for `crisp-edges`, like Firefox.
A note has been added that we could do better if we wanted to.
Multiple backgrounds are not yet supported.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/webidls/CSSStyleDeclaration.webidl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/webidls/CSSStyleDeclaration.webidl b/components/script/dom/webidls/CSSStyleDeclaration.webidl index d6a4420b2a9..46ca8424b70 100644 --- a/components/script/dom/webidls/CSSStyleDeclaration.webidl +++ b/components/script/dom/webidls/CSSStyleDeclaration.webidl @@ -38,6 +38,7 @@ partial interface CSSStyleDeclaration { [TreatNullAs=EmptyString] attribute DOMString backgroundRepeat; [TreatNullAs=EmptyString] attribute DOMString backgroundImage; [TreatNullAs=EmptyString] attribute DOMString backgroundAttachment; + [TreatNullAs=EmptyString] attribute DOMString backgroundSize; [TreatNullAs=EmptyString] attribute DOMString border; [TreatNullAs=EmptyString] attribute DOMString borderColor; @@ -173,4 +174,6 @@ partial interface CSSStyleDeclaration { [TreatNullAs=EmptyString] attribute DOMString maxWidth; [TreatNullAs=EmptyString] attribute DOMString zIndex; + + [TreatNullAs=EmptyString] attribute DOMString imageRendering; }; |