Skip to content

Instantly share code, notes, and snippets.

@basicxman
Created June 26, 2011 00:47
Show Gist options
  • Select an option

  • Save basicxman/1047099 to your computer and use it in GitHub Desktop.

Select an option

Save basicxman/1047099 to your computer and use it in GitHub Desktop.
<!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>
@basicxman
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment