Auto merge of #13589 - splav:SVGElement#12974, r=pcwalton,Ms2ger

Support SVG element

<!-- Please describe your changes on the following line: -->
minimal SVG element implementation
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #12974 (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13589)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-10-07 17:40:13 -05:00 committed by GitHub
commit dad3b4785a
22 changed files with 533 additions and 19 deletions

View file

@ -6294,6 +6294,18 @@
"url": "/_mozilla/mozilla/sslfail.html"
}
],
"mozilla/svg/svg.html": [
{
"path": "mozilla/svg/svg.html",
"references": [
[
"/_mozilla/mozilla/svg/svg_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/svg/svg.html"
}
],
"mozilla/table_valign_bottom.html": [
{
"path": "mozilla/table_valign_bottom.html",
@ -20040,6 +20052,18 @@
"url": "/_mozilla/mozilla/sslfail.html"
}
],
"mozilla/svg/svg.html": [
{
"path": "mozilla/svg/svg.html",
"references": [
[
"/_mozilla/mozilla/svg/svg_ref.html",
"=="
]
],
"url": "/_mozilla/mozilla/svg/svg.html"
}
],
"mozilla/table_valign_bottom.html": [
{
"path": "mozilla/table_valign_bottom.html",

View file

@ -0,0 +1,3 @@
[svg.html]
type: reftest
prefs: [dom.svg.enabled:true]

View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>SVG embedded inline</title>
<link rel="match" href="svg_ref.html">
</head>
<body>
top<br>
a
<svg width="100px" height="100px">
</svg>
b<br>
bottom
</body>
</html>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>SVG embedded inline</title>
<style>
img {
width: 100px;
height: 100px;
}
</style>
</head>
<body>
top<br>
a
<img>
b<br>
bottom
</body>
</html>