mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
Implement overflow:clip (#35103)
* Implement overflow clip Signed-off-by: longvatrong111 <longvatrong111@gmail.com> * Modify test ini for overflow clip Signed-off-by: longvatrong111 <longvatrong111@gmail.com> * Update overflow_clip_rect calculation Signed-off-by: batu_hoang <longvatrong111@gmail.com> * Update overflow-clip-margin border-radius according to shadow box Signed-off-by: longvatrong111 <longvatrong111@gmail.com> --------- Signed-off-by: longvatrong111 <longvatrong111@gmail.com> Signed-off-by: batu_hoang <longvatrong111@gmail.com> Signed-off-by: batu_hoang <55729155+longvatrong111@users.noreply.github.com>
This commit is contained in:
parent
cb3ecd4417
commit
8c46749740
33 changed files with 261 additions and 200 deletions
|
@ -115,10 +115,15 @@ center { text-align: -moz-center; }
|
|||
|
||||
label { cursor: default; }
|
||||
|
||||
img {
|
||||
overflow: clip !important;
|
||||
overflow-clip-margin: 0 !important;
|
||||
}
|
||||
|
||||
input:not([type=radio i]):not([type=checkbox i]):not([type=reset i]):not([type=button i]):not([type=submit i]),
|
||||
textarea {
|
||||
cursor: text;
|
||||
overflow: hidden;
|
||||
overflow: hidden !important;
|
||||
-servo-overflow-clip-box: content-box;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue