Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gfx: Add elliptical border-radius shorthand parsing
Adds elliptical border-radius shorthand parsing, e.g.: /* The syntax of the second radius allows one to four values */ /* (first radius values) / radius */ border-radius: 10px 5% / 20px; /* (first radius values) / top-left-and-bottom-right | top-right-and-bottom-left */ border-radius: 10px 5% / 20px 30px; /* (first radius values) / top-left | top-right-and-bottom-left | bottom-right */ border-radius: 10px 5px 2em / 20px 25px 30%; /* (first radius values) / top-left | top-right | bottom-right | bottom-left */ border-radius: 10px 5% / 20px 25em 30px 35em;
- Loading branch information
Showing
5 changed files
with
80 additions
and
24 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
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
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,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | ||
<meta content="utf-8" http-equiv="encoding"> | ||
<style type="text/css"> | ||
div.box { | ||
background: white; | ||
border-width: 15px 15px 15px 15px; | ||
border-color: yellow red green blue; | ||
border-style: solid; | ||
border-radius: 100px 150px / 50px 100px 200px; | ||
height: 500px; | ||
width: 500px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h2>Shorthand Border Radius - Elliptical</h2> | ||
<div class="box"></div><br> | ||
</body> | ||
</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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | ||
<meta content="utf-8" http-equiv="encoding"> | ||
<style type="text/css"> | ||
div.box { | ||
background: white; | ||
border-width: 15px 15px 15px 15px; | ||
border-color: yellow red green blue; | ||
border-style: solid; | ||
border-top-left-radius: 100px 50px; | ||
border-top-right-radius: 150px 100px; | ||
border-bottom-right-radius: 100px 200px; | ||
border-bottom-left-radius: 150px 100px; | ||
height: 500px; | ||
width: 500px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h2>Shorthand Border Radius - Elliptical</h2> | ||
<div class="box"></div><br> | ||
</body> | ||
</html> |