mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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
14
src/test/ref/pseudo_inherit_ref.html
Normal file
14
src/test/ref/pseudo_inherit_ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue