mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Use empty pseudo to cascade only inheritable properties for text
Since for nested inline elements non-inheritable properties are properly stored in the inline context of an inline fragment, so get rid of them on the style.
This commit is contained in:
parent
1677d479f6
commit
951c050690
8 changed files with 84 additions and 191 deletions
|
@ -168,6 +168,12 @@ svg > * {
|
|||
display: none;
|
||||
}
|
||||
|
||||
/* style for text node. */
|
||||
*|*::-servo-text {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* style for text in input elements. */
|
||||
*|*::-servo-input-text {
|
||||
margin: 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue