mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Add a reftest for the pseudo element
This commit is contained in:
parent
5c15f24308
commit
a6066e8c03
4 changed files with 63 additions and 0 deletions
22
src/test/ref/pseudo_element_a.html
Normal file
22
src/test/ref/pseudo_element_a.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
span.servo1:before { display:inline; content:'Hello';}
|
||||
span.servo1:after { display:inline; content:'ervo';}
|
||||
div.servo2:before { display:inline; content:'Hello';}
|
||||
div.servo2:after { display:inline; content:'ervo';}
|
||||
span.servo3:before { display:block; content:'Smile'; color:blue}
|
||||
span.servo3:after { display:block; content:'And thanks'; color:blue}
|
||||
div.rust:before { display:block; content:'Hello,';}
|
||||
div.rust:after { display:inline; content:'ust';}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<span class="servo1">, S</span>
|
||||
<div class="servo2">, S</div>
|
||||
<span class="servo3">Servo</span>
|
||||
<div class="rust">R</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue