mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-07-15 15:32:51 +03:00
Load CSS default HTML element styles from a CSS file with no specificity. This simplyfies how to setup the HTML defaults. Also set new defaults matching closer HTML spec.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "compareimages.hpp"
|
||||
#include "eepp/ui/uiwindow.hpp"
|
||||
#include "utest.hpp"
|
||||
|
||||
#include <eepp/graphics/fontfamily.hpp>
|
||||
@@ -782,13 +783,17 @@ UTEST( UIHTMLDetails, summaryListStyleNoneClearsDefaultPadding ) {
|
||||
init_ui_test();
|
||||
auto* sceneNode = SceneManager::instance()->getUISceneNode();
|
||||
sceneNode->loadLayoutFromString( HTMLFormatter::HTMLtoXML( R"html(
|
||||
<details>
|
||||
<summary id="default">Default marker</summary>
|
||||
<summary id="none" style="list-style-type: none;">No marker</summary>
|
||||
<summary id="explicit" style="list-style-type: none; padding-left: 7px;">
|
||||
Explicit padding
|
||||
</summary>
|
||||
</details>
|
||||
<html>
|
||||
<body>
|
||||
<details>
|
||||
<summary id="default">Default marker</summary>
|
||||
<summary id="none" style="list-style-type: none;">No marker</summary>
|
||||
<summary id="explicit" style="list-style-type: none; padding-left: 7px;">
|
||||
Explicit padding
|
||||
</summary>
|
||||
</details>
|
||||
</body>
|
||||
</html>
|
||||
)html" ) );
|
||||
sceneNode->updateDirtyLayouts();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user