| <!DOCTYPE html> |
| <html> |
| <head> |
| <style> |
| [myatt]:after { |
| content: attr(myatt); |
| } |
| [myatt]:before { |
| content: 'Second paragraph'; |
| } |
| </style> |
| </head> |
| <body> |
| <div>Test for Bugzilla <a href="https://bugs.webkit.org/show_bug.cgi?id=88196">Bug 88196</a>: REGRESSION (r96393): In some cases, generated content is never shown</div> |
| <div>Elements with style specified from attribute selectors in conjunction with pseudo-elements should not take on the shared style of their previous matching sibling (if any).</div> |
| <p>First paragraph.</p> |
| <p myatt=":before and :after content."> with </p> |
| </body> |
| </html> |
| |