Created
June 26, 2011 00:47
-
-
Save basicxman/1047099 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>Test</title> | |
| <style type="text/css"> | |
| span { | |
| text-decoration: underline; | |
| font-weight: bold; | |
| } | |
| span .child { | |
| text-decoration: none; | |
| font-weight: normal; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <!-- | |
| `Testing!` should be underlined but `now testing this` shouldn't be. | |
| In the DOM inspector it shows the parent span element as matching the CSS | |
| style `text-decoration: underline` and the child .child element as | |
| matching the `text-decoration: none` style yet ` now testing this` | |
| remains underlined. | |
| Firefox 4.0.1 renders this correctly. | |
| Chrome 12.0.742.100 doesn't. | |
| Safari 5.0.5 (6533.21.1) doesn't. | |
| --> | |
| <span>Testing!<span class="child"> now testing this</span></span> | |
| </body> | |
| </html> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related: http://stackoverflow.com/questions/5434819/cannot-undo-text-decoration-for-child-elements