mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Add test for css class
This commit is contained in:
parent
8c92b8accd
commit
aaeb683654
4 changed files with 20 additions and 0 deletions
20
src/test/html/test_class_helloworld.html
Normal file
20
src/test/html/test_class_helloworld.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.c1 { color: red; }
|
||||
.c2 { background: blue; }
|
||||
#i1 { color: green; }
|
||||
</style>
|
||||
<script>
|
||||
document.write("ok");
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<div id='i1'>Hello</div>
|
||||
<div class='c1'>World</div>
|
||||
<div class='c2'>Hello</div>
|
||||
<div class='c1 c2'>World</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue