mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
cf98ee0a14
It would appear that shadows were expected to render above underlines, violating the CSS3 spec for text-shadow (http://dev.w3.org/csswg/css3-text/#text-shadow). The text-overflow reftest relied on our previous standards-mode decoration implementation, which drew strikethroughs after drawing the contents of the box, regardless of whether there was any text; the reference thus no longer needs to artificially introduce the decoration.
24 lines
2.2 KiB
HTML
24 lines
2.2 KiB
HTML
<!DOCTYPE HTML>
|
|
|
|
<!-- Shadows -->
|
|
<!-- Blue underline/text -->
|
|
<div style="position: absolute; top: 22px; left: 22px; color: blue; text-decoration: underline;"><span style="color: rgba(0, 0, 0, 0);">testforquirks</span></div>
|
|
<div style="position: absolute; top: 22px; left: 22px;"><span style="color: blue;">test</span></div>
|
|
<!-- Red overline/text -->
|
|
<div style="position: absolute; top: 22px; left: 22px; color: rgba(0, 0, 0, 0);">test<span style="text-decoration: overline; color: red;"><span style="color: rgba(0, 0, 0, 0);">forquirks</span></span></div>
|
|
<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">test</span><span style="color: red;">for</span></div>
|
|
<!-- Green text/underline -->
|
|
<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="text-decoration: underline; color: green;"><span style="color: rgba(0, 0, 0, 0);">quirks</span></span></div>
|
|
<div style="position: absolute; top: 22px; left: 22px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="color: green;">quirks</span></div>
|
|
|
|
<!-- "Real" text -->
|
|
<!-- Blue underline/text -->
|
|
<div style="position: absolute; top: 20px; left: 20px; color: blue; text-decoration: underline;"><span style="color: rgba(0, 0, 0, 0);">testforquirks</span></div>
|
|
<div style="position: absolute; top: 20px; left: 20px;"><span style="color: blue;">test</span></div>
|
|
<!-- Red overline/text -->
|
|
<div style="position: absolute; top: 20px; left: 20px; color: rgba(0, 0, 0, 0);">test<span style="text-decoration: overline; color: red;"><span style="color: rgba(0, 0, 0, 0);">forquirks</span></span></div>
|
|
<div style="position: absolute; top: 20px; left: 20px;"><span style="color: rgba(0, 0, 0, 0);">test</span><span style="color: red;">for</span></div>
|
|
<!-- Green underline/text -->
|
|
<div style="position: absolute; top: 20px; left: 20px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="text-decoration: underline; color: green;"><span style="color: rgba(0, 0, 0, 0);">quirks</span></span></div>
|
|
<div style="position: absolute; top: 20px; left: 20px;"><span style="color: rgba(0, 0, 0, 0);">testfor</span><span style="color: green;">quirks</span></div>
|