-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[カスタム CSS] メディアクエリ演算子を保持 #1089
[カスタム CSS] メディアクエリ演算子を保持 #1089
Conversation
…ing media query operators
…ing media query operators
… page CSS functionality
…necessary HTML tags
@mtdkei
※ キャッシュは都度消してます |
@sysbird |
@sysbird |
個別の投稿、固定ページでも解決されているのを確認しました |
array( | ||
'option' => 'div > h1 { color:red; }', | ||
'correct' => 'div > h1 { color:red; }', | ||
), | ||
array( | ||
'option' => 'div > h1 { | ||
color:red; | ||
}', | ||
'correct' => 'div > h1 {color:red;}', | ||
), | ||
array( | ||
'option' => '<script></script>div > h1 {color:red;}', | ||
'correct' => 'div > h1 {color:red;}', | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtdkei これは元々実施していたテストなので、入れ替えると今度はいつの間にかこの条件での動作がおかしくなるかもしれないので残したまま追加が望ましいです。
tests/test-css-customize.php
Outdated
array( | ||
'post_title' => 'タイトル', | ||
'post_meta' => 'div > h1 { color:red; }', | ||
'correct' => 'div > h1 { color:red; }', | ||
'post_meta' => '@media (width > 1000px) {p { color: red ;}}', | ||
'correct' => '@media (width > 1000px){p{color:red;}}', | ||
), | ||
array( | ||
'post_title' => 'タイトル', | ||
'post_meta' => 'div > h1 { | ||
color:red; | ||
}', | ||
'correct' => 'div > h1 {color:red;}', | ||
'post_meta' => '@media (width > 1000px) { | ||
p { | ||
color: red; | ||
} | ||
}', | ||
'correct' => '@media (width > 1000px){p{color:red;}}', | ||
), | ||
array( | ||
'post_title' => 'タイトル', | ||
'post_meta' => '<script></script>div > h1 {color:red;}', | ||
'correct' => 'div > h1 {color:red;}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtdkei ここもイキの上で追加でよろしくお願いいたします ( ̄人 ̄)
@mtdkei あ、無理言ってたらすみません。 ちなみに、元々のテストで |
@kurudrive |
チケットへのリンク / 変更の理由(元のissueがあればリンクを貼り付ければOK)
#1088
どういう変更をしたか?
個別投稿や固定ページのカスタム CSS 、VK All in One Expansion Unit CSSカスタマイズでメディアクエリで使用する比較演算子の>、<、>=、<=をエスケープしないようにしました。
ソースコードについて
デザイン・UI
プログラムの変更の場合
テストを書かないのは普通ではありません。書けるテストは極力書くようにしてください。
書いていない場合は書かない理由を記載してください。
その他
変更内容について何を確認したか、どういう方法で確認をしたかなど
個別の投稿、固定ページ
5 . フロントエンドで画面の幅を変えてcolorが変わることを確認。
VK All in One Expansion Unit CSSカスタマイズ
5 . フロントエンドで画面の幅を変えてcolorが変わることを確認。
確認URL
( どこかのデモサイトかテストサーバーにデプロイ済みなどで確認できる場合はそのURL )
レビュワーの確認方法・確認する内容など
実装者と同じ方法で確認してください。
レビュワーに回す前の確認事項
レビュワー向け
確認して変更が反映されていない場合の確認事項