Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/dom/elements/global-attributes/style-01.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>The style attribute</title>
<link rel="match" href="style-01-ref.html">
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<style>
#idsel { background: red; }
#idsel2 { background: limegreen !important; }
</style>
<div id="test">
<p style="background:limegreen">This line should have a green background.
<p style="/**/background:limegreen">This line should have a green background.
<p style="background/**/:limegreen">This line should have a green background.
<p style="background:/**/limegreen">This line should have a green background.
<p style="background:limegreen/**/">This line should have a green background.
<p id="idsel1" style="background:limegreen">This line should have a green background.
<p id="idsel2" style="background:red">This line should have a green background.
<p style="background:limegreen; background:r/**/ed">This line should have a green background.
<p style="background:limegreen;}">This line should have a green background.
<p style="};background:limegreen">This line should have a green background.
<p style="background:red;};background:limegreen">This line should have a green background.
<p style="background:limegreen;{background:red}">This line should have a green background.
</div>