Make pseudo :before and :after elements inherit style from attached

element, as per http://dev.w3.org/csswg/css2/generate.html, rather
than from the parent element.
This commit is contained in:
Glenn Watson 2014-07-08 11:18:33 +10:00
parent 53d5d35e7c
commit 9dba9b9447
4 changed files with 34 additions and 2 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style type="text/css">
.big {
font-size: 128px;
}
</style>
</head>
<body>
<p style="color: green;" class="big">AB</p>
</body>
</html>