mirror of
https://github.com/servo/servo.git
synced 2025-08-14 09:55:35 +01:00
Update web-platform-tests to revision 58b72393db0bd273bb93268c33666cf893feb985
This commit is contained in:
parent
43a4f01647
commit
64e0a52537
12717 changed files with 59835 additions and 59820 deletions
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style>
|
||||
div {
|
||||
border-radius: 3px;
|
||||
}
|
||||
div::before {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: 2px;
|
||||
content: 'foo';
|
||||
color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
canvas{
|
||||
border-radius: 2px;
|
||||
display: block;
|
||||
position: relative;
|
||||
top: -1em;
|
||||
}
|
||||
</style>
|
||||
<body style="font: 10px/1 Ahem;">
|
||||
<div><canvas width="30px" height="10px"></canvas></div>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var canvas = document.querySelector('canvas');
|
||||
var context = canvas.getContext("2d");
|
||||
context.strokeStyle = 'green';
|
||||
context.lineWidth = 4;
|
||||
context.strokeRect(0, 0, 30, 10);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue