forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1179078 - Recover from parse errors inside image values in border…
…-image properly. r=dholbert
- Loading branch information
Showing
7 changed files
with
58 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
p { | ||
border: 2px solid transparent; | ||
border-image: linear-gradient(to right, orange, blue) 1 1; | ||
} | ||
</style> | ||
<p>This paragraph must have an orange/blue gradient border.</p> |
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,9 @@ | ||
<!DOCTYPE html> | ||
<style> | ||
p { | ||
border: 2px solid transparent; | ||
border-image: linear-gradient(to right, orange, blue) 1 1; | ||
border-image: linear-gradient(to right, garbage) 1 1; | ||
} | ||
</style> | ||
<p>This paragraph must have an orange/blue gradient border.</p> |
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
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
14 changes: 14 additions & 0 deletions
14
layout/reftests/w3c-css/submitted/variables/variable-reference-40-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,14 @@ | ||
<!-- | ||
Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ | ||
--> | ||
<!DOCTYPE html> | ||
<title>CSS Reftest Reference</title> | ||
<link rel="author" title="Cameron McCormack" href="mailto:[email protected]"> | ||
<style> | ||
p { | ||
border: 2px solid transparent; | ||
border-image: linear-gradient(to right, orange, blue) 1 1; | ||
} | ||
</style> | ||
<p>This paragraph must have an orange/blue gradient border.</p> |
17 changes: 17 additions & 0 deletions
17
layout/reftests/w3c-css/submitted/variables/variable-reference-40.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,17 @@ | ||
<!-- | ||
Any copyright is dedicated to the Public Domain. | ||
http://creativecommons.org/publicdomain/zero/1.0/ | ||
--> | ||
<!DOCTYPE html> | ||
<title>CSS Test: Test that a variable reference within a gradient value in a border-image shorthand parses correctly.</title> | ||
<link rel="author" title="Cameron McCormack" href="mailto:[email protected]"> | ||
<link rel="help" href="http://www.w3.org/TR/css-variables-1/#using-variables"> | ||
<link rel="match" href="variable-reference-40-ref.html"> | ||
<style> | ||
p { | ||
--orange: orange; | ||
border: 2px solid transparent; | ||
border-image: linear-gradient(to right, var(--orange), blue) 1 1; | ||
} | ||
</style> | ||
<p>This paragraph must have an orange/blue gradient border.</p> |
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