Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit d32d533

Browse files
committed
Add reftest for bug 676538 (text-decoration offsets on block, child inline, and grandchild inline).
1 parent 53bf218 commit d32d533

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
>
2+
<html lang="en-US">
3+
<head>
4+
<title>text-decoration alignmenttitle>
5+
<meta charset=UTF-8>
6+
<style>
7+
8+
span.block { position: absolute; top: 0; left: 0; }
9+
span.dec { text-decoration: underline }
10+
span.hide { color: transparent }
11+
12+
style>
13+
head>
14+
<body>
15+
16+
<p style="position: relative">
17+
<span class="block" style="margin-top: 16px"><span class="hide">span><span class="dec" style="color:black ">x<span class="hide">xxspan>span>span>
18+
<span class="block" style="margin-top: 08px"><span class="hide">xspan><span class="dec" style="color:fuchsia">x<span class="hide">xspan>span>span>
19+
<span class="block" style="margin-top: 00px"><span class="hide">xxspan><span class="dec" style="color:aqua ">x<span class="hide">span>span>span>
20+
p>
21+
22+
body>
23+
html>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
>
2+
<html lang="en-US">
3+
<head>
4+
<title>text-decoration alignmenttitle>
5+
<meta charset=UTF-8>
6+
<style>
7+
8+
p, span { text-decoration: underline }
9+
span { vertical-align: 8px }
10+
p > span { color: fuchsia }
11+
p > span > span { color: aqua }
12+
13+
em { font-style: normal; font-size: 5em }
14+
15+
style>
16+
head>
17+
<body>
18+
19+
<p>x<span>x<span>xspan>span>p>
20+
21+
body>
22+
html>

layout/reftests/text-decoration/reftest.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,4 @@ fails == underline-block-propagation-2-quirks.html underline-block-propagation-2
9696
== decoration-css21-block.html decoration-css21-block-ref.html
9797
!= inline-baseline-almost-standards.html inline-baseline-almost-standards-ref.html
9898
!= inline-baseline-quirks.html inline-baseline-quirks-ref.html
99+
== 676538-1.html 676538-1-ref.html

0 commit comments

Comments
 (0)