Bug 259428
| Summary: | text-decoration does not support multiple values | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brandon <brandonstewart> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | brandonstewart, mmaxfield, ntim, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://codepen.io/bts1/pen/LYXrPQB | ||
Brandon
text-decoration is a short hand value that allows you to set <'text-decoration-line'> || <'text-decoration-style'> || <'text-decoration-color'> [0].
Currently Safari only supports setting one value.
See this example:
<p id="one"> Hello World </p>
<p id="two"> Hello World </p>
<p id="three"> Hello World </p>
<p id="four"> Hello World </p>
#one {
text-decoration: underline;
}
#two {
text-decoration: blue wavy underline;
}
#three {
text-decoration: overline red;
}
#four {
text-decoration-color: blue;
text-decoration-style: wavy;
text-decoration-line: underline;
}
This example works properly in Chrome and Firefox.
[0]: https://drafts.csswg.org/css-text-decor/#text-decoration-property
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/112737854>
Brandon
Dupe of https://bugs.webkit.org/show_bug.cgi?id=230083
*** This bug has been marked as a duplicate of bug 230083 ***