Skip to content

Commit

Permalink
Bug 1559094 - Restore old behavior for background-size: cover + zero-…
Browse files Browse the repository at this point in the history
…height background positioning area. r=dholbert

This restores our previous behavior and adds a .tentative test because I
couldn't see how the spec makes any sense.

Filed w3c/csswg-drafts#4049 about that.

Differential Revision: https://phabricator.services.mozilla.com/D35571

UltraBlame original commit: 7ae44e68ef103e451b5a535b4f77407c0ae78382
  • Loading branch information
marco-c committed Oct 4, 2019
1 parent 07fdf48 commit f3e1a20
Show file tree
Hide file tree
Showing 3 changed files with 402 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layout/painting/nsImageRenderer.cpp
Expand Up @@ -2315,6 +2315,9 @@ CONTAIN
=
(
constrainingRatio
&
&
constrainingRatio
<
aIntrinsicRatio
)
Expand Down
@@ -0,0 +1,50 @@
<
!
doctype
html
>
<
title
>
CSS
Test
Reference
<
/
title
>
<
style
>
body
{
margin
:
0
}
div
{
width
:
100px
;
height
:
50px
;
background
:
lime
;
}
<
/
style
>
<
div
>
<
/
div
.

0 comments on commit f3e1a20

Please sign in to comment.