mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Fix parsing of text decorations.
Adds a reftest so it doesn't break again.
This commit is contained in:
parent
bf60477e95
commit
f188278dd2
4 changed files with 40 additions and 5 deletions
|
@ -250,3 +250,4 @@ fragment=top != ../html/acid2.html acid2_ref.html
|
|||
== text_align_complex_a.html text_align_complex_ref.html
|
||||
== percentage_height_root.html percentage_height_root_ref.html
|
||||
== canvas_transform_a.html canvas_transform_ref.html
|
||||
!= text_decoration_smoke_a.html text_decoration_smoke_ref.html
|
||||
|
|
18
tests/ref/text_decoration_smoke_a.html
Normal file
18
tests/ref/text_decoration_smoke_a.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `text-decoration` does something. -->
|
||||
<style>
|
||||
#a {
|
||||
text-decoration: underline;
|
||||
color: red;
|
||||
font-size: 96px;
|
||||
width: 300px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=a>Foo</div>
|
||||
</body>
|
||||
</html>
|
||||
|
17
tests/ref/text_decoration_smoke_ref.html
Normal file
17
tests/ref/text_decoration_smoke_ref.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `text-decoration` does something. -->
|
||||
<style>
|
||||
#a {
|
||||
color: red;
|
||||
font-size: 96px;
|
||||
width: 300px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=a>Foo</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue