mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
LibWeb: Don't apply element inline style to associated pseudo elements
An element's inline style, if present, should not leak into any pseudo elements generated by that element.
This commit is contained in:
parent
eed956b473
commit
620a34a463
4 changed files with 31 additions and 7 deletions
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html><html><head><style>
|
||||
* {
|
||||
border: 1px solid black;
|
||||
font: 20px SerenitySans;
|
||||
}
|
||||
.outer::before {
|
||||
display: block;
|
||||
content: "";
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border: 1px solid red;
|
||||
}
|
||||
</style><head><body><div class="outer" style="height: 100px; width: 100px;"><div class="inner">
|
Loading…
Add table
Add a link
Reference in a new issue