diff --git a/components/notification/__tests__/placement.test.js b/components/notification/__tests__/placement.test.js
index 8d59eddb49..e7fed3a720 100644
--- a/components/notification/__tests__/placement.test.js
+++ b/components/notification/__tests__/placement.test.js
@@ -34,6 +34,22 @@ describe('Notification.placement', () => {
const defaultBottom = '24px';
let style;
+ // top
+ open({
+ placement: 'top',
+ top: 50,
+ });
+ style = getStyle($$('.ant-notification-top')[0]);
+ expect(style.top).toBe('50px');
+ expect(style.left).toBe('0px');
+ expect(style.right).toBe('0px');
+ expect(style.bottom).toBe('');
+
+ open({
+ placement: 'top',
+ });
+ expect($$('.ant-notification-top').length).toBe(1);
+
// topLeft
open({
placement: 'topLeft',
@@ -63,6 +79,22 @@ describe('Notification.placement', () => {
});
expect($$('.ant-notification-topRight').length).toBe(1);
+ // bottom
+ open({
+ placement: 'bottom',
+ bottom: 100,
+ });
+ style = getStyle($$('.ant-notification-bottom')[0]);
+ expect(style.top).toBe('');
+ expect(style.left).toBe('0px');
+ expect(style.right).toBe('0px');
+ expect(style.bottom).toBe('100px');
+
+ open({
+ placement: 'bottom',
+ });
+ expect($$('.ant-notification-bottom').length).toBe(1);
+
// bottomRight
open({
placement: 'bottomRight',
diff --git a/components/notification/demo/placement.md b/components/notification/demo/placement.md
index 7a6b385c8c..73531c20ab 100755
--- a/components/notification/demo/placement.md
+++ b/components/notification/demo/placement.md
@@ -20,6 +20,8 @@ import {
RadiusUprightOutlined,
RadiusBottomleftOutlined,
RadiusBottomrightOutlined,
+ BorderTopOutlined,
+ BorderBottomOutlined,
} from '@ant-design/icons';
const openNotification = placement => {
@@ -33,6 +35,17 @@ const openNotification = placement => {
ReactDOM.render(
+
+
+
+
+