Skip to content

Commit

Permalink
Remove compatible fix for old Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchuan committed Dec 18, 2023
1 parent a833fae commit d7c3c04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/generator/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,6 @@ class Rules {
let rule = `${ prop }: ${ value };`
rule = prefixer(prop, rule);

if (prop === 'clip-path') {
// fix clip bug
rule += ';overflow: hidden;';
}

if (prop === 'width' || prop === 'height') {
if (!is_special_selector(selector)) {
rule += `--internal-cell-${ prop }: ${ value };`;
Expand Down
2 changes: 1 addition & 1 deletion src/property.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default add_alias({
if (!preset) return '';
let prop = 'clip-path';
let style = `${ prop }: polygon(${points.join(',')});`;
return prefixer(prop, style) + 'overflow: hidden;';
return prefixer(prop, style);
}),

use(rules) {
Expand Down

0 comments on commit d7c3c04

Please sign in to comment.