mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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:
commit
dad3b4785a
22 changed files with 533 additions and 19 deletions
|
@ -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",
|
||||
|
|
3
tests/wpt/mozilla/meta/mozilla/svg/svg.html.ini
Normal file
3
tests/wpt/mozilla/meta/mozilla/svg/svg.html.ini
Normal file
|
@ -0,0 +1,3 @@
|
|||
[svg.html]
|
||||
type: reftest
|
||||
prefs: [dom.svg.enabled:true]
|
15
tests/wpt/mozilla/tests/mozilla/svg/svg.html
Normal file
15
tests/wpt/mozilla/tests/mozilla/svg/svg.html
Normal 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>
|
19
tests/wpt/mozilla/tests/mozilla/svg/svg_ref.html
Normal file
19
tests/wpt/mozilla/tests/mozilla/svg/svg_ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue