Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1559094 - Restore old behavior for background-size: cover + zero-…
…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
Showing
3 changed files
with
402 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2315,6 +2315,9 @@ CONTAIN | |
= | ||
( | ||
constrainingRatio | ||
& | ||
& | ||
constrainingRatio | ||
< | ||
aIntrinsicRatio | ||
) | ||
|
50 changes: 50 additions & 0 deletions
50
testing/web-platform/tests/css/css-backgrounds/background-size-cover-003-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
. |
Oops, something went wrong.