зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1607667 - Change initial value of image-orientation to from-image. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D62826 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
28b7a52e45
Коммит
ad66f7561b
|
@ -12,6 +12,6 @@
|
|||
() => document.documentElement.removeAttribute('class'));
|
||||
</script>
|
||||
<body>
|
||||
<iframe src="bug917595-unrotated.jpg" scrolling="no" marginwidth="0" marginheight="0"></iframe>
|
||||
<iframe src="bug917595-pixel-rotated.jpg" scrolling="no" marginwidth="0" marginheight="0"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -43,7 +43,7 @@ skip-if(Android) == 649134-2.html 649134-2-ref.html
|
|||
# image-orientation when determining the size of the image.
|
||||
# (Fuzzy necessary due to pixel-wise comparison of different JPEGs.
|
||||
# The vast majority of the fuzziness comes from Linux and WinXP.)
|
||||
fuzzy(0-1,0-149) == bug917595-iframe-1.html bug917595-1-ref.html
|
||||
fuzzy(0-2,0-830) == bug917595-iframe-1.html bug917595-1-ref.html
|
||||
fuzzy(0-3,0-640) fuzzy-if(skiaContent,0-3,0-7544) fuzzy-if(webrender&&!geckoview,2-3,3092-7544) == bug917595-exif-rotated.jpg bug917595-pixel-rotated.jpg # bug 1060869
|
||||
|
||||
# Test support for SVG-as-image in <picture> elements.
|
||||
|
|
|
@ -2710,7 +2710,8 @@ nsChangeHint nsStyleDisplay::CalcDifference(
|
|||
//
|
||||
|
||||
nsStyleVisibility::nsStyleVisibility(const Document& aDocument)
|
||||
: mDirection(aDocument.GetBidiOptions() == IBMBIDI_TEXTDIRECTION_RTL
|
||||
: mImageOrientation(StyleImageOrientation::FromImage),
|
||||
mDirection(aDocument.GetBidiOptions() == IBMBIDI_TEXTDIRECTION_RTL
|
||||
? StyleDirection::Rtl
|
||||
: StyleDirection::Ltr),
|
||||
mVisible(StyleVisibility::Visible),
|
||||
|
|
|
@ -8821,8 +8821,8 @@ var gCSSProperties = {
|
|||
domProp: "imageOrientation",
|
||||
inherited: true,
|
||||
type: CSS_TYPE_LONGHAND,
|
||||
initial_values: ["none"],
|
||||
other_values: ["from-image"],
|
||||
initial_values: ["from-image"],
|
||||
other_values: ["none"],
|
||||
invalid_values: ["0", "0deg"],
|
||||
},
|
||||
"image-rendering": {
|
||||
|
|
|
@ -85,7 +85,7 @@ ${helpers.single_keyword(
|
|||
|
||||
${helpers.single_keyword(
|
||||
"image-orientation",
|
||||
"none from-image",
|
||||
"from-image none",
|
||||
engines="gecko",
|
||||
gecko_enum_prefix="StyleImageOrientation",
|
||||
animation_value_type="discrete",
|
||||
|
|
|
@ -2,9 +2,3 @@
|
|||
[Property image-rendering inherits]
|
||||
expected: FAIL
|
||||
|
||||
[Property image-orientation has initial value from-image]
|
||||
expected: FAIL
|
||||
|
||||
[Property image-orientation inherits]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче