mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
53d5d35e7c
commit
9dba9b9447
4 changed files with 34 additions and 2 deletions
17
src/test/ref/pseudo_inherit.html
Normal file
17
src/test/ref/pseudo_inherit.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style type="text/css">
|
||||
p:before {
|
||||
content: "A";
|
||||
}
|
||||
.big {
|
||||
font-size: 128px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="color: red; font-size: 64px;">
|
||||
<p style="color: green;" class="big">B</p>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue