mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
20
tests/html/color-change-text.html
Normal file
20
tests/html/color-change-text.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset='utf-8'>
|
||||
<style>
|
||||
.red { color: red; }
|
||||
.blue { color: blue; }
|
||||
</style>
|
||||
<script>
|
||||
window.setTimeout(function () {
|
||||
window.document.getElementsByTagName('div')[0].setAttribute('class', 'blue');
|
||||
window.document.getElementsByTagName('div')[1].setAttribute('style', 'color:red;');
|
||||
}, 1000);
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="change" class="red">Hello, World!</div>
|
||||
<div id="change" style="color:blue;">Hello, Servo!</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue